Thank you very much...this was what I was looking for. I now understand the process!
Main Topics
Browse All TopicsI need a good deal of help understanding the send and receive process with xml using php. I have asked for help and have gotten good results but I don't understand what is going on making it hard to adapt any solution to my needs. Can someone explain each part of the process for sending and receiving xml data using php? how the system knows when to send the data and how it knows it is receiving the data back? The example data is that I will send to this company's website an item number, description, price, and quantity. They will send back a confirmation, customer number, and comments. I do have a document that explains how they want things formatted but for this example I was hoping just for someone to create an example markup.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: nizsmoPosted on 2009-01-07 at 23:33:14ID: 23322776
It depends on what kind of method you want to "send" the xml data with.
For one of my payment gateway implementations I had to send the xml file which they will then in return spit back the results (for example of whether the payment was successful or not).
The "sending" was done via a function which I defined as called httpspost().
The function uses CURL to post data to the relevant URL which the payment gateway supplied. I suppose this is what you are looking for?
Below is the example function, note you have to fill in bits and pieces to customize to suit your own needs...
I suspect you can try to comment out the lines with the SSL parameters, as this was for a payment gateway so required the security.
Goodluck!
Select allOpen in new window