2013-07-11 13 views
0

處沒有端點偵聽我正在開發一個Web應用程序,該應用程序必須與外部公司提供的第三方Web服務進行通信。 ws使用SSL(VeriSign)與端口443上的https協同工作。我必須將用戶名和密碼放入SOAP消息的請求主體中。我向外部公司提供了公司的公有IP,因爲他們可能需要註冊。 我添加了一個服務引用到我的項目提供WS的URL(爲前https://domain.com/ws/Test.asmx 我是能夠建立請求,但是當我嘗試調用Web服務,我得到以下異常:。在https://

「在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'」

任何幫助?我瘋了!謝謝!

回答

0

您可以從客戶機連接到端口443上的服務嗎?你可以與它談判SSL嗎?嘗試

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

從客戶機。

+0

我得到「系統找不到指定的文件」 – lugeno

+0

對不起,在Windows上,你不需要/ dev/null,你想NUL(如果我沒記錯的話)。所以,未經測試,但它會是:'openssl s_client -connect domain.com:443 -showcerts