客户端:
<system.serviceModel>
<!--<bindings><basicHttpBinding>
<binding name="WebService1Soap" />
</basicHttpBinding>
</bindings>-->
<bindings>
<basicHttpBinding>
<!--<binding name="WebService1Soap" />-->
<binding name="WebService1Soap" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNaMetableCharCount="2147483647" />
</binding>
</basicHttpBinding>
<customBinding>
<!--<binding name="WebService1Soap12">-->
<!--<textMessageEncoding messageVersion="Soap12" />
<httpTransport />-->
<binding name="WebService1Soap12" >
<textMessageEncoding messageVersion="Soap12" />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<!--<endpoint address="http://10.99.4.76:81/WebService1.asmx" binding="basicHttpBinding"
bindingConfiguration="WebService1Soap" contract="webservice.WebService1Soap"
name="WebService1Soap" />-->
<endpoint address="http://10.99.4.76:81/WebService1.asmx" binding="customBinding"
bindingConfiguration="WebService1Soap12" contract="webservice.WebService1Soap"
name="WebService1Soap12" />
</client>
</system.serviceModel>
</configuration>
webservice:
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicAuthEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassproxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNaMetableCharCount="16384" /> <security mode="Transport"> <transport clientCredentialType="Basic" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding> </bindings> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer> </configuration>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。