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 30 31 32 33 34
|
ini_set('soap.wsdl_cache_enabled',0);
$client = new SoapClient(
null,
Array ('location' => 'http://dern-web.in.ac-nancy-metz.fr/sos_signalement/index.php',
'uri' => 'http://dern-web.in.ac-nancy-metz.fr/sos_signalement/',
'proxy_host' => 'XXXX',
'proxy_port' => intval(XXX),
'trace' => 1,
'style' => SOAP_RPC
));
echo "<pre>\n";
print_r($client);
echo "<pre>\n";
try
{
$result = $client-> __soapCall('accueil', array('1'));
echo $result;
} catch (SoapFault $e)
{
echo "Error: {$e->faultstring}";
}
echo "<pre>\n";
echo "Request :\n".htmlspecialchars($client ->__getLastRequest()) ."\n";
echo "Response:\n".htmlspecialchars($client ->__getLastResponse())."\n";
echo "</pre>"; |