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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.