.net WCF流媒体合约
我正在尝试使用basicHttpBinding设置流式WCF服务。服务托管在IIS7进程中 该协定包含一个简单的Stream GetStream()操作 当我使用服务引用连接一个简单的客户机时,我从服务器得到以下结果 内容类型多部分/相关;type=“应用程序/xop+xml”;start=“”;边界=“uuid:9520d099-4241-43f3-824d-5a3d197f62ed+id=1”;服务不支持start info=“text/xml”。客户端和服务绑定可能不匹配 这是客户端上的绑定配置。名为“streaming\u IsStreamingTestService”的绑定部分是服务器上的精确副本。Ctrl+X.net WCF流媒体合约,.net,asp.net,wcf,streaming,.net,Asp.net,Wcf,Streaming,我正在尝试使用basicHttpBinding设置流式WCF服务。服务托管在IIS7进程中 该协定包含一个简单的Stream GetStream()操作 当我使用服务引用连接一个简单的客户机时,我从服务器得到以下结果 内容类型多部分/相关;type=“应用程序/xop+xml”;start=“”;边界=“uuid:9520d099-4241-43f3-824d-5a3d197f62ed+id=1”;服务不支持start info=“text/xml”。客户端和服务绑定可能不匹配 这是客户端上的绑
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="streaming_IStreamingTestService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="655360" maxBufferPoolSize="655360" maxReceivedMessageSize="655360"
messageEncoding="Mtom" transferMode="Streamed" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8000/StreamingTest.svc"
binding="basicHttpBinding" bindingConfiguration="streaming_IStreamingTestService"
contract="Services.StreamingTest.IStreamingTestService" name="streaming_IStreamingTestService" />
</client>
</system.serviceModel>
</configuration>
与此相关的错误部分是“客户端和服务绑定可能不匹配”
由于您在服务器上使用的是transfermode“Streamed”,并且默认为“Buffered”,这可能是不匹配的原因。相关错误部分是“客户端和服务绑定可能不匹配” 由于您在服务器上使用的是transfermode“Streamed”,默认为“Buffered”,这可能是不匹配的情况。请粘贴到客户端配置部分。请粘贴到客户端配置部分。