But there are times that all the frameworks and toolkits in the world wont be able to produce the desired plain XML structure of the SOAP call. Especially when you are working with Chinese low-end equipment.
I usually work in php nusoap and I had trouble finding the right way to do this. I was so desperate, that I have been posting raw XML with CURL to mimic the SOAP Request. Luckily I found a way to do i with our favourite php soap toolkit.
Thow following is an example that calls a function insertUser with raw XML:
require_once('nusoap/lib/nusoap.php'); $endpoint = "http://yoursoapserver.com/SomeSoapService"; $client = new nusoap_client($endpoint, false); $msg = $client->serializeEnvelope(" <ns1:insertuser xmlns:1="http://yoursoapserver.com/"> <arg0 xsi:type="xsd:string">name</arg0> <arg1> <username xsi:type="xsd:string">username</username> <password xsi:type="xsd:string">0ac495f743a36cef9b0eaafa92ae08e21</password> </arg1> <arg2 xsi:type="xsd:string">email</arg2> <arg3 xsi:type="xsd:string">domain</arg3> </ns1:insertuser> "); $result=$client->send($msg, $endpoint); print_r($result);