AnsweredAssumed Answered

WAS API Help (PHP)

Question asked by Aaron Thomas on Jun 6, 2016
Latest reply on Aug 18, 2016 by Dominique GUINARD

Hello,

I am using PHP to make a POST call to the WAS Finding API. I followed the guidance in the API that said to use a .xml file to specify the criteria for the POST request. However, when I created a .xml file and specified the criteria, then passed it to the post request, I received an error that stated: INVALID_XML Invalid XML format: Content is not allowed in prolog. 1. Attached is the code I wrote and the xml file I am using to make the API call. I would appreciate if someone can provide me some guidance on how to do this in PHP.

 

Thanks in advance for your help!

Attachments

Outcomes