嵌套的SOAP请求如何调用,wcf的后台
SOAP body如下:
<soap12:Body>
<MCSInterface xmlns="http://tempuri.org/">
<dllName>string</dllName>
<className>string</className>
<MethodName>string</MethodName>
<args>
<anyType />
<anyType />
</args>
</MCSInterface>
用NSURLRequest请求如下的XML不行,
<?xml version=”1.0” encoding=”utf-8”?><soap12:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap12=”http://www.w3.org/2003/05/soap-envelope”><soap12:Body><MCSInterface xmlns=”http://tempuri.org/”><dllName>SysMaintain_Service</dllName><className>SysMaintain_Service.MySystem.SysMaintain</className><MethodName>getWebModules</MethodName><args><anyType>1</anyType><anyType></anyType></args></MCSInterface></soap12:Body></soap12:Envelope>。
后来转用ksoap实现,成功了,soapObject请求结构如下:
MCSInterface{dllName=*;className=*;MethodName=*;args=MCSInterface{anyType=1, anyType=""}}
后来,在iOS的NSURLRequest请求<args>...</args>改成<MCSInterface><args>...</args></MCSInterface>也不行,不知怎么表达?郁闷啊