Home > How do I read the Integration API XML content from my PHP script?

Categories:


(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:
$xml = fopen(“php://input”,”r”);

Did you find this article helpful?

Not HelpfulNeeds WorkSo-soHelpfulVery Helpful (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Published January 18, 2012