在https://没有端点监听

时间:2013-07-11 15:23:35

标签: c# ssl https asmx

我正在开发一个必须与外部公司提供的第三方Web服务进行通信的Web应用程序。 ws与端口443上的https一起使用SSL(VeriSign)。我有用户名和密码,我必须放在SOAP消息的请求体内。我已经向外部公司提供了我公司的公共IP,因为他们可能需要注册它。 我为我的项目添加了一个服务引用,提供了ws的url(例如https://domain.com/ws/Test.asmx)。 我能够构建请求但是当我尝试调用Web服务时,我得到以下异常:

https://domain.com/ws/Test.asmx没有可以接受该消息的端点。这通常是由不正确的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。”

以下是app.config的摘录(在Web.config中复制):

  <system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="TestSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
        receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
        bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
        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="None" proxyCredentialType="None"
            realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://domain.com/ws/Test.asmx"
      binding="basicHttpBinding" bindingConfiguration="TestSoap"
      contract="Test.TestSoap" name="TestSoap" />
</client>
</system.serviceModel>

我能够在浏览器中打开wsdl。 Innerexception是“远程名称无法解析:'domain.com'”

任何帮助???我疯了!谢谢!

1 个答案:

答案 0 :(得分:0)

您可以从客户端计算机连接到端口443上的服务吗?你可以用它协商SSL吗?尝试

openssl s_client -connect domain.com:443 -showcerts < /dev/null

来自客户端计算机。