wcf

Alternatives to WCF

I'm currently implementing a Silverlight application using WCF for the communication between client and server. I've heard that using WCF we're bound to use some Microsoft technology at the client side, and can't easily replace this with "anything" - at least with the default SOAP implementation of WPF. So my questions are: Is this...

WCF Exception - The 'Body', 'http://www.w3.org/2003/05/soap-envelope' required message part was not signed. Issue

I'm running a WCF client locally that always throws a MessageSecurityException with the text: "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." The Inner Exception Message Is: "An error occurred when verifying security for the message" I set up a ...

Unit Testing Assemblies Running Out Of Process

Anybody out there have experience testing "out of process assemblies"? I'm testing some Com+ (Serviced Component) and WCF services configured to be activated out of process and I'm not sure what the best practices are for testing in these situations. What I've done is given the public classes their own IOC container that they can buil...

IClientChannel antipattern

I've just spend 4 hours (it's 3am in the UK) trying to debug ASP.NET application which caused an exception in a thread managed by Framework (i.e. not my thread). I've just found out that a result from the static method ChannelFactory.CreateChannel can be cast to IClientChannel and explicitly Disposed. I mean that's all fine and nice but ...

Why do I need to rebuild a WCF AJAX Service that didn't change while debugging?

Hi SO, I have a WCF based service that I use to expose AJAX functionality. Sometimes the service fails when I start a new debugging session (even if I make no changes to the service itself). A rebuild all fixes the issue. I never have this issue in production, just while debugging. I use IIS 7 to debug and have disabled all recycling....

WCF contract mismatch problem

Hi there, I have a client console app talking to a WCF service and I get the following error: "The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error." I think it's becuase of a contract mismatch but i can't figure out why. The service runs jus...

WCF. Notify one part about death of another.

I have the following scenario. My server have event. Client subscribes to this event and then wait till this event will happen. If client dies, server will know it becouse of exception it will get on firering event. If server dies - client never knows about it an continue wait. But when server up again he will not know about client, s...

How to return an Object with an Object Property from a WCF Service?

I have a set of web service methods returning a ActionResult class holding the following properties: object returnValue bool success string message the returnValue is used to hold different types of return values depending on the web methods used. The problem I have on the client is that if a web method is returning an internal class...

silverlight disconnect from wcf duplex after 10 connections

hello to all I have develop a silverlight chat application. In a single window load more than one chat windows at same time and every chat windo create a new connection to wcf duplex service. But after every 10 chat windows it disconnect from wcf and work stuck off. Im code some for throttling option but they don't work. this is my code...

Handling anything other than HttpStatusCode.OK

We have written a restful service using WCF and are now trying to write FitNesse tests to verify the behaviour of this service. One test is that a 404 status code is returned if a resource can not be found. The problem is that we can not find a mechanism for consuming the service that allows us to get the status code of the incomming r...

Get Requesting Domain Name from WCF request?

I asked this question: http://stackoverflow.com/questions/935854/get-the-domain-name-of-a-wcf-request Is it not possible to get the requesting domain from a WCF request? So for anonymous request that do not require authentication, how can I get the domain name? ...

WCF basichttpbinding netTcpBinding routing

Hi, I have created a WCF routing service. This service uses basicHTTPBinding as it is external facing, needs to interoperate and the client can't work with wsHttpBinding. This service receives all incoming method calls and forwards them onto another service. This other service is internal and uses netTcpBinding. The problem is I am get...

Create a Web Service(WCF) to integrate with QuickBooks

I am in the process of integrating our custom web app with QuickBooks Enterprise 9. My thought is that I could use QuickBooks as my "database" of sorts. When a person creates an invoice, the invoice is actually stored only in QuickBooks. When a person views a list of invoices, they are actually viewing a list of QuickBooks invoices. ...

Application Config Conundrum

Hello, I'm developing an n-tier smart client application. The client part of the application is split into two tiers. An interface application and client business lib that retrieves and serves data to the interface. The data is supplied via a collection of WCF services net.tcp and http depending on the client connectivity. My problem...

Wcf ThreadPool and async

I've got an asp.net web page that is making 7 async requests to a WCF service on another service. Both boxes are clean with nothing else installed. I've upped maxconnections in web.config to 20. I run a single call through the system and the page returns in 800ms. The long is short of it is I think that the threadpool is being being ov...

Configuring WCF for Web Browser Access

I'm fairly new to WCF but am technically competent. I am having trouble getting WCF to play nicely. I currently have a WSHttpBinding set up to a service and it is working when using the WCFTestClient supplied with VS2008. What I would like to do is have the service accessible within the browser. I currently return a JSON response from ...

can I have a WCF binding that goes through SSL (using https) with transport security set to none?

Greets. I realize this might be seen as a duplicate question as this but I'm getting a different error. My IIS is setup to use SSL. My service is setup relatively simple. Just a simple log in service. When I try to navigate directly to the svc file on the host machine I get this error Service cannot be activated due to an exception du...

How to force an IIS hosted WCF or ASMX [webservice] to use session object readonly?

Hi ! While making my first ajax attempts, I decided also, to go to use IIS hosted WCF now. The strange thing is, that the WCF cannot process several requests parallel for the same user/session, if sessionmode is enabled! If sessionmode is disabled on asp.net, the requests are processed parallel. The broser/client may execute several dif...

WCF vs. Web service vs. Sockets: which to choose?

I have two related questions about Web services: (1) I'm currently writing a set of applications, and it occurred to me that maybe I'm not using the right tool for the job. Here is the spec: There are many Windows servers behind different VPNs and firewalls. Each of the servers has a Windows service running, that reports various in...

WCF windows authentication security error

Hi there, i have some code that tries impersonate the callers windows security settings and then connect to another WCF service on a different machine WindowsIdentity callerWindowsIdentity = ServiceSecurityContext.Current.WindowsIdentity; using (callerWindowsIdentity.Impersonate()) { NetTcpBinding binding = new NetTcpBinding(); ...