开发者

Streaming problem in WCF

I am using WCF's basicHttpBinding streaming as follows:

 <endpoint address="" binding="basicHttpBinding"
           bindingConfiguration="test"
           cont开发者_StackOverflowract="WcfServiceLibrary1.IService1" />

   <bindings>
      <basicHttpBinding>
        <binding name="test" transferMode="Streamed" maxReceivedMessageSize="100000">
        </binding>
      </basicHttpBinding>
    </bindings>

The problem occurs when I am creating a client from my WCF services (adding a reference). On the client side it is showing transferMode="Streamed". This is working fine if I am using the netTcpBinding.


For HTTP transports, the transfer mode does not propagate across a connection, or to servers and other intermediaries. Setting the transfer mode is not reflected in the description of the service interface. After generating a client class for a service, you must edit the configuration file for services intended to be used with streamed transfers to set the mode. For TCP and named pipe transports, the transfer mode is propagated as a policy assertion.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜