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 35 36 37 38 39
| <HTML>
<?php
// --------------------
// SessionServices call
// --------------------
try {
$wsdl1='http://169.254.25.129/SelligentXatWebServices/SessionServices.asmx?WSDL';
$client1=new soapclient($wsdl1, array('trace'=>1));
$param1=array('database'=>'VRADEMANXAT', 'user'=>'TT', 'password'=>'', 'domain'=>'');
$result1=$client1->Login($param1);
} catch (SoapFault $fault1) {
trigger_error("SOAP FAULT: $fault1",E_USER_ERROR);
}
$response1= $client1->__getLastResponse();
echo "SessionServices contacted (function Login) : No SOAP FAULT returned.<BR>";
echo gettype($response1);
echo " : ";
echo $response1;
echo "<BR>";
// --------------------
// ChapterServices call
// --------------------
try {
$wsdl2='http://169.254.25.129/SelligentXatWebServices/ChapterServices.asmx?WSDL';
$client2=new soapclient($wsdl2, array('trace'=>1));
// $param2=array('sessionParams'=>'vrademanxat-tt-256b0126-aacd-475f-87', 'chapter'=>'Cpy', 'nrid'=>'13921644623442');
$param2=array('sessionParams'=>$response1, 'chapter'=>'Cpy', 'nrid'=>'13921644623442');
$result2=$client2->Open($param2);
} catch (SoapFault $fault2) {
trigger_error("SOAP FAULT: $fault2",E_USER_ERROR);
}
$response2=$client2->__getLastResponse();
echo "ChapterServices contacted (function Open) : No SOAP FAULT returned.<BR>";
echo gettype($response2);
echo " : ";
echo $response;
echo "<BR>"
?>
</HTML> |
Partager