I’m using the build-in SOAP-Server within a symfony2 application and beside handling the StdClass-Object, I would need to read the complete xml received for debugging and logging. Is there a way to simply catch the transferred xml? It should be somewhere in the request header, but I simply can’t find it there.
I’m using the build-in SOAP-Server within a symfony2 application and beside handling the StdClass-Object,
Share
I was looking for the same thing and finally found it. Hope this helps you or someone else.
The
$postdatavariable will have the raw XML. Found through the following two links:http://php.net/manual/en/reserved.variables.httprawpostdata.php
http://php.net/manual/en/soapserver.soapserver.php