Bonjour
c'est mon 1er poste et j'espère d'avoir une réponse de votre part.
Mon problème que un de nos client on développais un Web Services je ne sais pas comment ou avec quelle langage (d'ailleurs c'est pas un problème) ;
alors pour le consommer j'ai fait ce code suivant :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ini_set("soap.wsdl_cache_enabled", "0");
$path_to_wsdl = "http://xxxxxxx:8080/xxxxxWS.dll/wsdl/xxxxxxWS";
$client = new SoapClient($path_to_wsdl);
$allFunctions = $client->__getFunctions();
var_dump($allFunctions);
$param = array(
'p1' => '****',
'p2' => '****',
'p3' => '****',
'p4' => '****'
);
$requete = $client->GetItinerariesInfo($param); |
alors à l'aide de la fonction __getFunctions je peux récupérer la liste des fonctions et cela me donne :
array (size=2)
0 => string 'TPanelInformationOutputStruct GetItinerariesInfo(THeaderInfo $HeaderInfo, TPanelInformationInputStruct $PanelInformationInputStruct)' (length=132)
1 => string 'TPanelInformationOutputStruct GetItinerariesInfo(THeaderInfo $HeaderInfo, TPanelInformationInputStruct $PanelInformationInputStruct)' (length=132)
mais lors de l'appel de avec la fonction GetItinerariesInfo ce la me donne l'erreur suivant :
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\wamp\www\test2TMPA.php:32 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://panels.t...', 'urn:tmsapanelin...', 1, 0) #1 C:\wamp\www\test2TMPA.php(32): SoapClient->__call('GetItinerariesI...', Array) #2 C:\wamp\www\test2TMPA.php(32): SoapClient->GetItinerariesInfo(Array) #3 {main} thrown in C:\wamp\www\test2TMPA.php on line 24
j'ai déjà testé ce service en .Net et ça marche mais là je ne sais pas le problème peut être j'ai zappé un truc
Partager