Image

Imagesimonmarshall wrote in Imagephp

Sending XML over soap

Spent a good portion of today trying to answer two questions I thought would be simple. If anyone can point me at a decent example I'd be forever in their debt.

Question 1, how do I send an xml request over soap. I don't want to set up a client and run someone else's function, nor do I want to setup a function people can call (what every tutorial I found was trying to get me to do). I have a url of a receiver script, I need to create my soap message and fire it at it. It will then respond as a separate call and all will be hunky dory.

Question 2, how do I then format the request before I launch it. It needs to contain a very prescribed set of properties formatted in a certain way, so I need to get at it.


As you can tell, not a web services guy, never touched them before and I'm well out of my depth here. If anyone can shine a little light in the soapy darkness I'd be so appreciative. As will my laptop since it won't be hurled through a window tomorrow.

Many thanks :)