J'essaye d'appeler un client de savon à des fins de test du même serveur que j'exécute le service. Mon WSDL est à: http://www.installittoday.com/api/server.php?wsdl Je suis en train de charger simplement avec:PHP SoapClient expire
$client = new SoapClient('http://www.installittoday.com/api/server.php?wsdl');
mais je retourner l'erreur:
Warning: SoapClient::SoapClient(http://www.installittoday.com/api/server.php?wsdl) [soapclient.soapclient]: failed to open stream: Connection timed out in /home/installi/public_html/api/client.php on line 4
Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://www.installittoday.com/api/server.php?wsdl" in /home/installi/public_html/api/client.php on line 4
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.installittoday.com/api/server.php?wsdl' : failed to load external entity "http://www.installittoday.com/api/server.php?wsdl" in /home/installi/public_html/api/client.php:4 Stack trace: #0 /home/installi/public_html/api/client.php(4): SoapClient->SoapClient('http://www.inst...') #1 {main} thrown in /home/installi/public_html/api/client.php on line 4
Pourtant, je peux mettre en place le client très bien d'un autre site de mien. Est-ce un problème de pare-feu ou quoi?
ce qui est sur la ligne 4 de ce fichier? Essayez de le modifier pour obtenir une réponse. Peut être un pare-feu. Le WSDL rend bien ici. – IEnumerator
$ client = nouveau SoapClient ('http://www.installittoday.com/api/server.php?wsdl'); – Louis