我有一個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