Home > How do I read the Integration API XML content from my PHP script?
Categories: Technical Options
(Last Updated On: )
About This Article
The purpose of this article is to provide a comprehensive overview of how to read the Integration API XML content from your PHP script.
The XML content is a stream in XML format and not a POST or GET parameter as most PHP developer usually expect.
Therefore the XML stream is not available in the PHP $_ system variable. You need to use this method instead to read the stream in a $xml variable:
Therefore the XML stream is not available in the PHP $_ system variable. You need to use this method instead to read the stream in a $xml variable:
$xml = fopen(“php://input”,”r”);
Published January 18, 2012