Hey guys, I've posted a question on here before but I don't think I was very direct about the problem so I'll state it in a new way:
How do I send CDATA to a webservice using the PHP SoapClient?
Currently I am creating a $string full of CDATA and XML tags. But when I pass this to the webservice, the CDATA and XML tags are escaped and lose their meaning.
[code=php]
$client = new SoapClient("my. wsdl",array("tr ace"=>1));
$string = "<! [CDATA[<myxml>]]>";
$client->remoteMethod(a rray("tagname" => $string));
[/code]
When done this way, $string's tags are converted to < and > but "<tagname>" is proper -- how do I properly pass CDATA to a webservice using the PHP SoapClient?
How do I send CDATA to a webservice using the PHP SoapClient?
Currently I am creating a $string full of CDATA and XML tags. But when I pass this to the webservice, the CDATA and XML tags are escaped and lose their meaning.
[code=php]
$client = new SoapClient("my. wsdl",array("tr ace"=>1));
$string = "<! [CDATA[<myxml>]]>";
$client->remoteMethod(a rray("tagname" => $string));
[/code]
When done this way, $string's tags are converted to < and > but "<tagname>" is proper -- how do I properly pass CDATA to a webservice using the PHP SoapClient?
Comment