test getListeEtablissements
This commit is contained in:
parent
b3702662cb
commit
f7963f5289
35
public/test/getListeEtablissements.php
Normal file
35
public/test/getListeEtablissements.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$client = new SoapClient(
|
||||
'http://webservice.sd.dev/service?wsdl-auto',
|
||||
array(
|
||||
'login' => 'mricois',
|
||||
'password' => md5('mricois|bj10sx'),
|
||||
'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS,
|
||||
'trace' => 1,
|
||||
'soap_version' => SOAP_1_2,
|
||||
)
|
||||
);
|
||||
|
||||
$parameters = new stdClass();
|
||||
$parameters->siren = '552144503';
|
||||
|
||||
try
|
||||
{
|
||||
$result = $client->getListeEtablissements($parameters);
|
||||
echo 'REQUETE : <br/>';
|
||||
echo htmlentities($client->__getLastRequest());
|
||||
echo "<br/><br/>";
|
||||
echo 'REPONSE : <br/>';
|
||||
echo htmlentities($client->__getLastResponse());
|
||||
|
||||
echo '<br/>';
|
||||
echo '<pre>';
|
||||
print_r($result);
|
||||
echo '</pre>';
|
||||
}
|
||||
catch(SoapFault $e)
|
||||
{
|
||||
echo $e->faultcode.' - '.$e->faultstring;
|
||||
}
|
Loading…
Reference in New Issue
Block a user