c# - There was no endpoint listening at https:// -


i'm developing web application must communicate third-party web service provided external company. ws works https on port 443 ssl (verisign). have user name , password have put inside request body of soap message. have provided external company public ip of company because had register it. added service reference project providing url of ws (for ex. https://domain.com/ws/test.asmx. able build request when try call web service following exception:

"there no endpoint listening @ https://domain.com/ws/test.asmx accept message. caused incorrect address or soap action. see innerexception, if present, more details."

here extract app.config (replicated in 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> 

i'am able open wsdl inside browser. innerexception "the remote name not resolved: 'domain.com'"

any help??? i'm going mad! thanks!

can connect service on port 443 client machine? can negotiate ssl it? try

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

from client machine.


Comments