- print_r: documentation ( source)
<?php
try {
$soap = new SoapClient("https://qualcas-ssc.ouest-france.fr:443/casregister/services/CasRegisterService?wsdl");
echo "----------- Authenticating -----------<br>";
$oAuthResult = $soap->Authenticate(
array(
'login' => 'user-casregister',
'password' => 'U5erKsr3g15tEr',
)
);
print_r($oAuthResult);
echo "<BR>";
if ($oAuthResult->AuthenticateResult->Result != 0) {
echo "Error authenticating!!<br>";
return;
}
echo "Key = " . $oAuthResult->AuthenticateResult->Key . "<br>";
echo "Authentication OK<br>";
} catch(SoapFault $fault) {
echo $fault;
}