开发者

Regenerating Proxy for WCF Service

We are providing WCF services to various clients, one of them is getting the following error. After googled, I found that since client exceeded its idle time,开发者_如何学C they have to regenerate the proxy again in order to make another call. Now my question, My understanding of this problem is correct? How to make service call withour regenerating the proxy.

The message could not be processed. This is most likely because the action 'http://Service/Update' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.


As indicated by the error message, have you increased the receiveTimeout property for the binding in the configuration file?

Example from msdn here:

<binding name="WSHttpBinding_ISampleService" closeTimeout="00:01:00"
                openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="00:01:00"
                bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                allowCookies="false">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜