How to send a POST request to an external API and parse its XML response?
Normally using only php and xml I would do something like . But i am not sure how can I to do the same using Symfony.
Also please note that the content inside the xml file is dynamic like "Itemnumber", "quantity" etc
Moreinfo:
I am trying to send the xml data to our third party client system(they just work with XML so no JSON response) and parse this XML response and show it to our customers. Well since customer request are dynamic so does the contents inside the .xml file changes every-time. So i need to figure out
- Load this dynamic .xml file.
- Make the connection using POST.
- Read the Parse Xml data which i receive from our client(which can be done easily).