PHP soapClient отправляет пользовательский XML

Я пытаюсь сделать SOAP-запрос, используя класс soapClient из PHP, это мой код:

$xmlstr = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schema,s.xmlsoap.org/soap/envelope/" xmlns:typ="http://localhost:8090/mockCustomerManagement/types">
   <soapenv:Header>
      <typ:customerManagementHeader>
         <typ:userId>42</typ:userId>
         <typ:requestId>1500</typ:requestId>
         <typ:messageTimestamp>2013-09-25T14:31:21+00:00</typ:messageTimestamp>
      </typ:customerManagementHeader>
   </soapenv:Header>
   <soapenv:Body>
      <typ:getCustomerInfoData>
         <useremail>[email protected]</useremail>
      </typ:getCustomerInfoData>
   </soapenv:Body>
</soapenv:Envelope>
XML;

$wsdl = 'http://localhost:8090/mockCustomerManagementSoapHttpBinding?WSDL';
$client = new SoapClient($wsdl, array(
    'cache_wsdl'    => WSDL_CACHE_NONE, 
    'cache_ttl'     => 86400, 
    'trace'         => true,
    'exceptions'    => true,
));

$xmlVar = new SoapVar($xmlstr, XSD_ANYXML);
$client->getCustomerInfo($xmlstr);

Но запрос выдает мне исключение, и когда я запрашиваю у клиента последний запрос, он показывает дополнительный текст в начале и в конце моего XML, как вы можете видеть:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost:8090/mockCustomerManagement/types">
<SOAP-ENV:Body>

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://localhost:8090/mockCustomerManagement/types">
   <soapenv:Header>
      <typ:customerManagementHeader>
         <typ:userId>42</typ:userId>
         <typ:requestId>1500</typ:requestId>
         <typ:messageTimestamp>2013-09-25T14:31:21+00:00</typ:messageTimestamp>
      </typ:customerManagementHeader>
   </soapenv:Header>
   <soapenv:Body>
      <typ:getCustomerInfoData>
         <useremail>[email protected]</useremail>
      </typ:getCustomerInfoData>
   </soapenv:Body>
</soapenv:Envelope>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Есть какой-нибудь способ удалить / отключить этот дополнительный текст? Другими словами, есть ли способ отправить только мой XML?

Ответы на вопрос(2)

Ваш ответ на вопрос