soap response to xml (simple_xml)
Posted
by ntan
on Stack Overflow
See other posts from Stack Overflow
or by ntan
Published on 2010-05-05T13:16:29Z
Indexed on
2010/05/05
13:28 UTC
Read the original article
Hit count: 212
Hi i am trying to convert a soap response to XML.
Soap has an envelop and a body
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
When try to convert
$responseXML = simplexml_load_string($string);
I get
object(SimpleXMLElement)#20 (0) { }
If i edit the $string as soap-Envelope and soap-Body i can get the XML
Whats wrong with : and can not get XML
I hope its clear.
Anyone
© Stack Overflow or respective owner