Passing XML String to Webservice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have to pass an XML-String to a webservice.

$client = new SoapClient($wsdl,array('trace'=>1,'exceptions'=>0));
$result = $client->import($xml);

The problem is, that SOAP or PHP replaces all "<" or ">" with  "&lt;" and
"&gt;"
so that the SOAP HEader looks like:

 Request :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope ........>
<SOAP-ENV:Body><ns1:import><username
xsi:type="xsd:string">xxx</username><password
xsi:type="xsd:string">xxx</password><content xsi:type="xsd:string">

&lt;head&gt;&#13;  	&lt;object type="Magazine"&gt;&#13;


I want to submit the XML as it is, without parsing.
Any Ideas ?

Thanks

Reinhard

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux