Question

I am using wsHttpBinding to call a WCF web service. When I look into the Fiddler2, I see multiple calls to the server before calling my actual OperationContract.

From this post I understood what these service calls are doing.

However, I want to know if there is any way to avoid these calls after first successful service call.

In my application, the web service is called so frequently that 3-4 additional calls per actual call to web service operation will not be accepted.

Was it helpful?

Solution

As you mentioend what happens is that WCF negotiates for a key. More details in here.

You have a few options:

  • set negotiateServerCredential and establishSecurityContext to false (this would require the client to have the server certificate out of band)
  • change to a different security mechanism (user name auth, or transport with SSL)
  • stay with the current situation. Once the negotiation is established no more extra calls are made. They happen once per proxy generation.

There is no way to make the negotiation process shorter. It consists of several message exchanges since this is the WS-Trust protocol.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top