webservice/public/test/getCmdPieces.php

29 lines
656 B
PHP
Raw Normal View History

2010-11-02 11:32:51 +00:00
<?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,
)
);
$parameters = new stdClass();
2010-11-08 11:31:10 +00:00
$parameters->reference = 'PIECES-2';
$result = $client->getCmdPieces($parameters);
2010-11-02 11:32:51 +00:00
echo 'REQUETE : <br/>';
echo htmlentities($client->__getLastRequest());
echo "<br/><br/>";
echo 'REPONSE : <br/>';
echo htmlentities($client->__getLastResponse());
echo '<br/><br/>';
echo '<pre>';
print_r($result);
echo '</pre>';