[Web Service] Utilisation de SoapClient
Bonjour,
Je dois développer un client php qui se connecte à un webservice soap.
J'ai testé avec succès la connexion au webservice avec SoapUI.
A l'exécution, j'ai l'erreur suivante:
Citation:
'ERREUR: erreur de syntaxe sur ou près de « from »:calim2:
Voici mon code client:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php
$wsdl = 'http://intrageo.cannes.fr:81/AdresseRecherche/searchByWhereClause?wsdl';
$trace = true;
$exceptions = false;
$xml_array['context'] = '?';
$xml_array['table'] = 'adr_digadr';
$xml_array['colonneARecuperer'] = 'numero';
$xml_array['clauseWere'] = 'nomvoie= \'BOULEVARD COINTET\'';
$xml_array['nbMaxLignes'] = 10;
try
{
$client = new SoapClient($wsdl, array('trace' => $trace, 'exceptions' => $exceptions));
$response = $client->getDistinctValue($xml_array);
}
catch (Exception $e)
{
echo "Error!";
echo $e -> getMessage ();
echo 'Last response: '. $client->__getLastResponse();
}
var_dump($response);
?> |
Merci pour votre aide