<?php
$xmlDocument = '<SOAP-ENV:Body>
<mns1:doLogin xmlns:mns1="http://sphinx.dat.de/services/Authentication">
<request>
<customerLogin>francy</customerLogin>
<customerNumber>1323863</customerNumber>
</request>
</mns1:doLogin>
</SOAP-ENV:Body>';
ini_set("soap.wsdl_cache_enabled", "0");
$client = new SoapClient(
"http://www.dat.com:80/DATECodeSelection/services/Authentication?wsdl",
array(
'trace' => 1,
'exceptions' => 1,
'soap_version' => SOAP_1_1,
'encoding' => 'ISO-8859-1',
'features' => SOAP_SINGLE_ELEMENT_ARRAYS
)
);
$xmlvar = new SoapVar(
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://sphinx.dat.de/services/Authentication" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >'.$xmlDocument.'</SOAP-ENV:Envelope>',
XSD_ANYXML
);
try {
$params->xmlDocument = (object)$xmlvar;
$save_result = $client->mns1($params);
echo "<pre>\n\n";
echo "Result :\n";
var_dump($save_result);
echo "</pre>";
} catch (SoapFault $e) {
echo "SOAP Fault: ".$e->getMessage()."<br />\n";
}
?>