我一般都在寻找关于wcf服务的某种反馈,我是一个完全的初学者。基本上,客户端需要将xml文件和图像传输到服务,并且能够从服务中下载数据集/或xml文件。我已经设置了一个wsDualHttpBinding双工合约来允许这个(回调)。我的主要三个问题是:
我真的可以使用一些反馈,wcf可能非常复杂,找到正确的做事方式对初学者来说并不容易。以前关于这个主题的问题没有得到太多反馈。
编辑:设置流后,获取不遵循http协议的端点的错误
<binding name="duplexendpointserver"
maxReceivedMessageSize="2147483647"
transferMode="Streamed"
messageEncoding="Mtom">
<security mode="TransportCredentialOnly">
<message clientCredentialType="UserName" />
</security>
</binding> <!--<reliableSession ordered="true" inactivityTimeout="00:10:00"/>-->
<!--</binding>-->
</basicHttpBinding>
</bindings>
<services>
<service name="Votex.Service.WCFServices" behaviorConfiguration="svcbh">
<endpoint name="duplexendpoint" address="" binding="basicHttpBinding" bindingConfiguration="duplexendpointserver" contract="Votex.Service.IWCFServices" ></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
答案 0 :(得分:1)
在Large Data and Streaming上查看此MSDN文章。
void Upload(Stream uploadStream)
Stream Download(string fileName)
)