PHP SoapClient fails to include function-params in XML properly

cwowdesignsfs

New Member
I try to make a request to a .NET WSDL function called GetPeriodicValues. The function requires some params and the problem is that SoapClient creates an incorrect XML.This PHP-code...\[code\]$client = new SoapClient(self::URL , array('trace' => 1, 'encoding' => 'UTF-8', 'soap_version' => SOAP_1_1));$params = array('name' => 'myname', 'address' => 'myaddress');$result = $client->__soapCall('GetPeriodicValues', array('parameters' => $params), array());\[/code\]...genereates the following request-XML (I have excluded some irrelevant content):\[code\]<SOAP-ENV:Body> <ns1:RequestOf_GetPeriodicValuesParameters/></SOAP-ENV:Body>\[/code\]But I would expect it to create this\[code\]<SOAP-ENV:Body> <ns1:RequestOf_GetPeriodicValuesParameters> <ns1:name>myname</ns1:name> <ns1:address>myaddress</ns1:address> </ns1:RequestOf_GetPeriodicValuesParameters></SOAP-ENV:Body>\[/code\]How should i include the params in the function-call?
 
Back
Top