[英]WCF binding I not understanding what is wrong
I started coding this in vs 2013. I have two endpoints (besides the Mex) - I then wanted to download a lot more data for the last endpoint. 我在vs 2013中开始对此进行编码。我有两个端点(除了Mex)-然后我想为最后一个端点下载更多数据。 So - I added to my config - My own http binding > BHBinding with (sorry for the flaling) 2147483647 everywhere - but my client seams to be getting the old error 65536 not big enough. 所以-我添加到我的配置中-我自己的http绑定> BHBinding随处可见(对不起,我感到很抱歉)2147483647-但我的客户端似乎无法得到旧的错误65536了。 "The maximum message size quota for incoming messages (65536) has been exceeded. " “超出了传入消息的最大消息大小配额(65536)。”
I have not delt with WCF too much - but was able in the past to get it to work, not sure what I am not seeing or understanding. 我对WCF的期望不是很高-但是在过去能够使它起作用,但不确定我没有看到或理解什么。 Thanks and Regards. 谢谢并恭祝安康。
here is my config: 这是我的配置:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BHBinding" allowCookies="true" maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="FTPServiceLibrary.FTPService">
<endpoint address="" binding="basicHttpBinding" bindingName=""
contract="FTPServiceLibrary.IFTPError">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<endpoint address="/FTPSettingAddress" binding="basicHttpBinding"
bindingConfiguration="BHBinding" bindingName="" contract="FTPServiceLibrary.IFTPSetting" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/Design_Time_Addresses/FTPServiceLibrary/Service1/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Thanks to Tung to pointing me in the right direction- I will have to now further learn not just about the server side but how server and client have different needs. 感谢Tung向我指出正确的方向-我现在不仅需要进一步了解服务器端,还需要进一步了解服务器和客户端如何有不同的需求。 Here is my updated client side: 这是我更新的客户端:
<bindings> <basicHttpBinding> <!--<binding name="BHBinding_IFTPSetting" />--> <binding name="BHBinding_IFTPSetting" allowCookies="true" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" > <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"/> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://server.company.com/EI.SecureFTP/FTPServiceLibrary.FTPService.svc/FTPSettingAddress" binding="basicHttpBinding" bindingConfiguration="BHBinding_IFTPSetting" contract="ftpservice.IFTPSetting" name="BHBinding_IFTPSetting" /> </client>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.