111,092
社区成员




System.Net.NetworkCredential User = new System.Net.NetworkCredential("user","pwd");
通过权限认证后登录了、但是就是调用不了、出现了上面的错误wsdl /out:D://WSDL/SF.cs http://219.134.187.154:9154/bsp-wms/ws/OutsideToLscmServiceImpl?wsdl
<system.serviceModel>
<bindings>
<customBinding>
<binding name="xxxBinding">
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap11" writeEncoding="utf-8">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</textMessageEncoding>
<httpTransport manualAddressing="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true">
</httpTransport>
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://www.xxx.com/..." binding="customBinding" bindingConfiguration="xxxBinding" contract="XXXService" name="XXX" />
</client>
</system.serviceModel>
另外你也可以试试添加Web引用(添加服务引用 > 高级 > 添加Web引用)来调用看看