I am making a request to a web service (made in delphi), by PHP sending an XML and receiving a response.
What I want is to be able to show XML exactly as it is.
Code that I use:
$getData
is the request XML
$client = new SoapClient("http://192.168.1.164:8080/wsdl/IComanda");
$obj = $client->Requisicao($gtData);
$xml = simplexml_load_string($obj);
print_r ($xml);
Only what I get is similar to this (example taken from PHP):
SimpleXMLElement Object
(
[title] => Forty What?
[from] => Joe
[to] => Jane
[body] =>
)
How do I display the pure XML received from the web service?