解决办法:
var binding = new BasicHttpBinding();
binding.Security.Mode = BasicHttpSecurityMode.Transport;
<bindings> <customBinding> <binding name="ZWS_CUST"> <mtomMessageEncoding messageVersion="Soap11WSAddressing10" /> ---<httpTransport authenticationScheme="Basic" /> <httpsTransport authenticationScheme="Basic" /> </binding> </customBinding> </bindings>
<ws2007HttpBinding> <binding maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="100" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647"/> <security mode="None"/> </binding> </ws2007HttpBinding> change to <ws2007HttpBinding> <binding name="ws2007https" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="100" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" /> <security mode="Transport"> <transport clientCredentialType="None"/> </security> </binding> </ws2007HttpBinding>标签:via,http,WebService,binding,URI,https,Parameter From: https://www.cnblogs.com/jchblog/p/18599893