WebService异常: 提供的 URI 方案“https”无效,应为“http”。 参数名: via

解决如下:

把节点 httpsTransport 改为 httpTransport

原配置:

  <bindings>
          <customBinding>
                <binding name="ZWS_CUST">
                    <mtomMessageEncoding messageVersion="Soap11WSAddressing10" />
                    <httpsTransport authenticationScheme="Basic" />
                </binding>
            </customBinding>
  </bindings>

修改为:

  <bindings>
          <customBinding>
                <binding name="ZWS_CUST">
                    <mtomMessageEncoding messageVersion="Soap11WSAddressing10" />
                    <httpTransport authenticationScheme="Basic" />
                </binding>
            </customBinding>
  </bindings>

 

posted @ 2024-06-19 14:07  海角之上  阅读(138)  评论(0编辑  收藏  举报