wcf

Overview of WCF binding availability

Is there any place that gives a full list of which WCF bindings are supported in which scenarios. For example: Net.tcp is not supported in IIS 6 wshttpbinding is not supported in Silverlight (version 2?) Some bindings are only supported if you have framework 3.5 In some cases the binding is supported, but not all functionality in the ...

How to dynamically create WAP pages by using RESTful Service?

Hi, I am creating a RESTful service which has to create WAP pages dynamically. I am wondering if it is possible to create a generic "wml" object with members representing wap elements (for example card, option...) so the service could simply return a wap page, for example: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WM...

Throwing an exception in a WCF service throws a CommunicationException

Whenever I throw an exception in my service, another exception is thrown right after it: System.ServiceModel.CommunicationException: There was an error reading from the pipe: Unrecognized error 109 (0x6d). ---> System.IO.PipeException: There was an error reading from the pipe: Unrecognized error 109 (0x6d). I'm implementing IErrorHand...

How to start another project in the solution in Debug mode

I've got a WCF host application which gets started by an executable with some dynamic parameters. Now I want to debug the this application but since it's getting started by the other tool VS.NET won't load it in debug mode. Is it possible to write some DEBUG only code to force it execute this process in DEBUG mode so it'll hit the bre...

Startup Code for Loading COM Object for WCF Service

I am currently have a WCF service that uses a COM DLL for its service. The COM object is only loaded once and saved via a singleton. The problem is the first run takes about 1 minute to load the COM Object. The WCF service is hosted via a Windows Service. I am wondering how can I load the COM Object singleton via the startup of the Windo...

WCF - using multiple bindings including REST (WebHttpBinding) on one service library?

Hi, I want to expose my Service Layer (which is currently written as standard class library with POCOs) for external as well as internal consumption. External clients will use it over REST style APIs while internally my MVC app will use it over net.tcp binding for better performance. How do I do this elegantly? I can write 2 wrappers o...

WCF AuthenticationService in IIS7 Error

I have a WCF Server running on IIS 7 using default application pool, with SSL activate, the services is installed in a SBS Server 2008. I implement client application services with wcf and SQL 2005 for setting the access control in my application. The application run under windows vista and is make with WPF. In my developer machine the ...

IIS Hosted MSMQ WCF application failing to start because unrelated que exist on the machine

I have a problem that is pretty much desctibed on this blog: http://www.keithelder.net/blog/archive/2008/11/24/workaround-for-wcf-netmsmqbinding-bug-the-service-queue-does-not.aspx the very problem is described on the blog as: The wcf claims that service ‘~unittestqueue` does not exist? Well that queue DOES exist on the server but th...

Subset of service operations on the client in WCF

If I have a service contract containing 2 operations, is it possible to have a client side service contract (.NET interface) that only has one of those operations? More generally, is it possible to only use a subset of service operations on the client and even to not have to have generated code for other operations (and their correspondi...

Configure a WCF client's MaxItemsInObjectGraph when using Unity

For a toolkit that uses a remote WCF service, I have configured a ChannelFactory<IMyService> in a UnityContainer. Now I want to configure this channel's endpoint behavior through code (using Unity) to apply this behavior: <behaviors> <endpointBehaviors> <behavior name="BigGraph"> <dataContractSerializer maxItemsInObjectGraph="...

Problem with Updating an Entity with a Timestamp Column via WCF

We're trying to update an entity via WCF, and the entity contains a Timestamp column. When we attempt the update, we get the following Data.Linq error, "A member that is computed or generated by the database cannot be changed." This message is referring to the Timestamp column. If we attempt the very same update not using WCF, it works ...

Token-Based Authentication in WCF

I am creating a website which will contain both ASP.NET pages and a Flash applet. I want to encapsulate my business logic in a WCF service which will be exposed through two endpoints: One accesssible over the Internet through HTTP(S), for use by the Flash client, and one accessible within the data center for use by the application serv...

Is there a way to do on demand flushing of WCF trace?

Just like there is a command to flush IIS7 logs: netsh http flush logbuffer I'm wondering is there a similar command to flush WCF trace log on demand. ...

WCF: Message Framing and Custom Channels

I am trying to understand how I would implement message framing with WCF. The goal is to create a server in WCF that can handle proprietary formats over Tcp. I can't use the net.Tcp binding because that is only for SOAP. I need to write a custom channel that would receive messages in the following format . An example message would be ...

Unit Testing DAL - Stop Connecting when running unit tests.

I am unit testing a DAL (Data Access Layer). When I debug a unit test, before my unit test constructor is even run, Visual Studio fires up WcfSvcHost. Why is it doing that? I am mocking out everything so I can just test what little logic there is in my DAL. I don't want it to do anything but run my unit test. Any ideas on how to t...

WCF Security Transport Security Questions

I'm writing a set of WCF services that rely on transport security with Windows Authentication using the trusted subsystem model. However, I want to perform authorization based on the original client user that initiated the request (e.g. a user from a website with a username/password). I'm planning to achieve this by adding the original...

WCF - Client callback vs. polling for "keep list of subscribers"

I want to create a simple client-server example in WCF. I did some testing with callbacks, and it works fine so far. I played around a little bit with the following interface: [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IStringCallback))] public interface ISubscribeableService { [OperationContract]...

Purpose of WCF Client Endpoint?

Hello, I understand the purpose of having WCF endpoint on the service side, but I don't quite understand the purpose of configuring endpoint on the client side. Is this for duplex connection or something? Regards James ...

WCF: Issued Token authentication over Basic HTTP

I am trying to make a WCF service that will use token-based authentication (so I don't have to send a username and password with every request) but I would like to keep the interface simple, ideally Basic HTTP(S), because I need to be able to call the service from Flash. It appears that the Issued Token authentication mode has to be use...

WCF RIA Services - loading data and binding

Hi all, I've just been toying around with the new WCF RIA Services Beta for Silverlight this evening. So far it looks nice, but I've come across a few barriers when trying to retrieve data and exposing it to the UI via binding. First of all, how am I able to get a single integer or string value from my service? Say if I have this metho...