Knowledge map advanced must read: read how large-scale map data efficient storage and retrieval>>>
If you understand this article, you won’t have to explain it
After the client fills in the code normally, the following error will appear when simulating the call:
PHP SoapClient Could Not Connect to Host
Then blabal, the key point is that you can’t connect to the server and so on
There are many reasons for this, but before you do all kinds of grammatical error checking, you might as well try the following methods:
$client = new SoapClient(null, array(‘location’ => ” http://yourname/wsdl/s.php “,’uri’ => ” http://yourname.com “));
Change to:
$client = new SoapClient(null, array(‘location’ => ” http://1.1.1.1/wsdl/s.php “,’uri’ => ” http://yourname.com “));
Or you can bind the domain name. If you don’t want to bind it, you can use my native method to try, hehe:)
English Address: http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/
Similar Posts:
- ping: www.bing.com: Temporary failure in name resolution
- How to Solve .Net 5 webapi cross domain Issue
- Solutions to nginx upstream timed out (Two Situations)
- Solution of JMeter pressure test “Java. Net. Socketexception: socket closed”
- [Solved] java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.api.BindingID
- org.xml.sax.SAXParseException: Content is not allowed in trailing section
- How to Use Array.prototype.slice.call(arguments)
- [Solved] 1146 – Table ‘performance_schema.session_variables’ doesn’t exist
- Solving the problem of nginx reverse proxy web service soap:address location problem