SoapFault exception: Could not connect to host

后端 未结 27 1639
-上瘾入骨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:12

    In my case it worked after the connection to the wsdl, use the function __setLocation() to define the location again because the call fails with the error:

    Could not connect to the host

    This happens if the WSDL is different to the one specified in SoapClient::SoapClient.

提交回复
热议问题