I am getting the following error, when I try making a SOAP call.
Warning: SoapClient::__doRequest() [soapclient开发者_Python百科.--dorequest]: php_network_getaddresses: getaddrinfo failed: Name or service not known in
and the error
HTTP-Could not connect to host
Things that I have ensured :
- allow_url_fopen : is enabled.
- The WSDL is being accessed. The server is not down.
- I have set the SOAP time out to 15 seconds.
The IP of the host you are connecting to cannot be resolved. See my answer in
simplexml_load_file not working "php_network_getaddresses: failed: Name or service not known"
for what to do.
精彩评论