SoapFault exception: Could not connect to host

后端 未结 27 1541
-上瘾入骨i
-上瘾入骨i 2020-12-01 07:47

Sometimes fail to call the web service.

This problem happens all the time.

What could be the problem?

Error:
    SoapFault exception: [HTTP]          


        
27条回答
  •  春和景丽
    2020-12-01 08:28

    With me, this problem in base Address in app.config of WCF service: When I've used:

     
    

    it's ok if use .net to connect with public ip or domain.

    But when use PHP's SoapClient to connect to "http://[online ip]:9022/Service/GatewayService", it's throw exception "Coulod not connect to host"

    I've changed baseAddress to [online ip]:9022 and everything's ok.

提交回复
热议问题