Jump to content

Receive XML in PHP


johnsmith153

Recommended Posts

Seems like you know the exact entry point of the request since you are talking about a file on your server.

 

Get the XML content from the request (presumably you just need the request body or some post parameter which holds the content)

 

Load it with SimpleXMLElement http://www.php.net/SimpleXMLElement

 

Exctract the data you need with xpath and create some kind of logic on what you will do with each request.

 

On the other hand, if you're receiving soap requests, you could get to know to PHPs' own SoapServer http://www.php.net/SoapServer or use some wrapper library to handle the requests. For that you basically just need to create a service class which will hold all the actions provided by your API.

Link to comment
https://forums.phpfreaks.com/topic/262732-receive-xml-in-php/#findComment-1346583
Share on other sites

Does someone have a quick script that will receive this xml that is pated and convert to a string. I can then have the script email it so I can see what is happening.

 

I am chatting with someone who is finishing in 5 minutes. I can spend the evening learning everything.

Link to comment
https://forums.phpfreaks.com/topic/262732-receive-xml-in-php/#findComment-1346587
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.