Passing XML String to Webservice

From: Date: Fri, 26 Aug 2005 06:47:32 +0000
Subject: Passing XML String to Webservice
Groups: php.soap 
Request: Send a blank email to php-soap+get-1968@lists.php.net to get a copy of this message
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

« previous php.soap (#1968) next »