1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
$serviceWebTelechargementCatalogue = 'https://services.################/CatalogService.svc?wsdl';
$params = array (
'soap_version' => SOAP_1_1,
'trace' => 1,
'stream_context' => stream_context_create(array(
'ssl' => array('allow_self_signed' => true)
)));
$paramsFunction = array('customerId' => '#####',
'macKey' => '##############'
);
try {
ini_set("soap.wsdl_cache_enabled", "0");
$client = new SoapClient($serviceWebTelechargementCatalogue, $params);
$client->myFunction(new SoapParam($paramsFunction, 'paramsFunction'));
} catch (Exception $e) {
echo $e;
echo '__getLastRequest() :' . $client->__getLastRequest();
} |
Partager