Jump to content

php soap client issue


princedesmers

Recommended Posts

Hi,

 

I have to develop a php client which connects to a soap webservice server.

With SoapUI, I can test the webservice which is working fine.

 

But from my php client, I get the following error:

 

syntax error near <<from>>

 

Here is my php client code:

 

<?php

 

$wsdl='http://intrageo.cannes.fr:81/AdressseRecherche/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->getMesssage();

echo 'Last response: '.$client->_getLastResponse();

}

 

var_dump($response);

 

?>

 

Thanks a lot for help.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.