Bonjour,
je suis bloqué sur la connexion à un Web Service distant. Celui-ci doit s'occuper de faire plusieurs choses.
Sur mon navigateur j'ai les erreurs suivantes :
Dans mon code je passe bien pour moi des informations qui sont nécessaires à la connexion :Warning: SoapClient::SoapClient() [soapclient.soapclient]: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\v4deve\squelettes-melanie\class\clientSoapSivedi.php on line 25
Warning: SoapClient::SoapClient(https://xxxxxxxxx.xxxxxxx.xx/xxx.xxx...etoresFME?wsdl) [soapclient.soapclient]: failed to open stream: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\v4deve\squelettes-melanie\class\clientSoapSivedi.php on line 25
Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "https://sbxb2bconnect.fidelidade.pt/BSG.InternationalES.Security/CanalCorretoresFME?wsdl" in C:\wamp\www\v4deve\squelettes-melanie\class\clientSoapSivedi.php on line 25
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://xxxxxxxxx.xxxxxxx.xx/xxx.xxxxxxxxxx.xxxxx/CanalCorretoresFME?wsdl/' : failed to load external entity https://xxxxxxxxx.xxxxxxx.xx/xxx.xxxxxxxxxx.xxxxx/CanalCorretoresFME?wsdl" in C:\wamp\www\v4deve\squelettes-melanie\class\clientSoapSivedi.php on line 25
D'après vous d'où pourrez venir ces erreurs ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 private static $wsdlFile = 'https://xxxxxxxxx.xxxxxxx.xx/xxx.xxxxxxxxxx.xxxxx/CanalCorretoresFME?wsdl'; // Fonction dédiée à l'instanctiation d'un client SOAP private static function chargeClientSoap() { //Pour les accès SSL $arrContextOptions=array('ssl' => array('verify_peer' => false,'allow_self_signed' => true,'SNI_enabled' => false)); // self::$clientSoap = new SoapClient(self::$wsdlFile, array( 'location' => '**.**.**.***', 'trace' => true, 'exceptions' => false, 'encoding' => 'UTF-8', 'use' => SOAP_LITERAL, 'soap_version' => SOAP_1_2, 'login' => '**********', 'password' => '**********' , 'stream_context' => stream_context_create($arrContextOptions) ) ); }
Merciiiiiiiiiiii
Partager