Voici un code PHP
$client = new SoapClient($wsdl,
array
(
"trace" => 1,
"exceptions" => 0,
'classmap' => $classmap
)
);
$res_int = $client->pg_testsimple()->pg_testsimpleReturn;
qui retourneRequest :
Code : Tout sélectionner
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="BMIWBS"><SOAP-ENV:Body><ns1:pg_testsimple/></SOAP-ENV:Body></SOAP-ENV:Envelope>Code : Tout sélectionner
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Le nom de la WDL contenant le service doit être précisé dans l'espace de nommage.
NameSpace must contain the WDL name</faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>Code : Tout sélectionner
<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\">
<soapenv:Body>
<bmiw:pg_testsimple xmlns:bmiw="BMIWBS"/>
</soapenv:Body>
</soapenv:Envelope>'Merci