我有一个PHP文件,它发送SOAP请求如何在SOAP中发送数组?
$client = new SoapClient('http://xyz');
$client->call('example', array('param1'=>'value2')
我想这样做使用了SoapUI这个同样的请求:
<soapenv:Envelope [..]>
<soapenv:Header/>
<soapenv:Body>
<urn:call soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<param1 xsi:type="xsd:string">example</param1>
<param2 xsi:type="xsd:anyType">
??
</param2>
</urn:call>
</soapenv:Body>
</soapenv:Envelope>
如何编码的XML上述例子吗?
看看上一个问题的答案 http:// stackoverf low.com/questions/577795/passing-array-to-soap-function-in-php – 2012-08-07 17:22:55