guarriman Posted March 14, 2008 Share Posted March 14, 2008 Hi. I've got this SOAP request structure I must comply in my petition: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <isValidUser xmlns="http://lab.domain.com/"> <userId>int</userId> <lastName>string</lastName> </isValidUser> </soap:Body> </soap:Envelope> and I wrote in my PHP code $params = array('userId' => '5555', 'lastName' => 'Smith'); $response = $client->__soapCall("isValidUser", $params); but I generate this request message: <SOAP-ENV:Body> <ns1:isValidUser/> <param1>Smith</param1> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Which code must I write in PHP to reproduce this XML request? Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/96137-how-to-reproduce-an-xml-request-via-soap/ Share on other sites More sharing options...
samshel Posted March 14, 2008 Share Posted March 14, 2008 Hi What Soap Client Class are you using? Can you please provide some more code? Quote Link to comment https://forums.phpfreaks.com/topic/96137-how-to-reproduce-an-xml-request-via-soap/#findComment-492150 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.