I am trying to get a xml document back from the webserver that also supports php.
It’s something similar to what the traditional web services do but i want to achieve it in php. Is this even possible?
To be more specific about my needs –
I want to send a xml document as a request to the server, have PHP do some processing on it and send me back an xml document as a response.
Thanks in advance.
Maybe you simply want http://php.net/SOAP ?
If not SOAP, then you can send your XML POST request and use
$xml = file_get_contents('php://input');to dump it to a variable that you can feed to http://php.net/DOM or other XML processors.After processing, you
header('Content-Type: text/xml');(or application/xml) and output the modified XML document.