41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
ini_set("soap.wsdl_cache_enabled", "0");
|
|
|
|
$client = new SoapClient(
|
|
'http://webservice.sd.dev/sinterne?wsdl',
|
|
array(
|
|
'login' => 'mricois',
|
|
'password' => md5('mricois|bj10sx'),
|
|
'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS,
|
|
'trace' => 1,
|
|
'soap_version' => SOAP_1_2,
|
|
)
|
|
);
|
|
|
|
$infoCommande = new stdClass();
|
|
$infoCommande->siren = '552144503';
|
|
$infoCommande->mode = 'courrier';
|
|
|
|
$infoDemandeur = new stdClass();
|
|
$infoDemandeur->reference = 'TEST';
|
|
$infoDemandeur->email = 'mricois@scores-decisions.com';
|
|
$infoDemandeur->tel = '';
|
|
$infoDemandeur->nom = '';
|
|
$infoDemandeur->service = '';
|
|
$infoDemandeur->societe = '';
|
|
$infoDemandeur->adresse = '';
|
|
$infoDemandeur->cp = '';
|
|
$infoDemandeur->ville = '';
|
|
|
|
$parameters = new stdClass();
|
|
$parameters->infoCommande = $infoCommande;
|
|
$parameters->infoDemandeur = $infoDemandeur;
|
|
$client->setCommandeKbis($parameters);
|
|
|
|
echo 'REQUETE : <br/>';
|
|
echo htmlentities($client->__getLastRequest());
|
|
echo "<br/><br/>";
|
|
echo 'REPONSE : <br/>';
|
|
echo htmlentities($client->__getLastResponse());
|
|
|