使用SOAPWebService iphone时出现的问题

使用SOAPWebService iphone时出现的问题,iphone,soap,Iphone,Soap,我正在我的应用程序中使用soapweb服务。我有办法 这将为我提供用户的用户设置。在请求中,我必须 当我使用固定令牌和 确认响应将正常,但当我调用web服务时 第二个或第三个答案是这样的 这是我的SOAP响应 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Bo

我正在我的应用程序中使用soapweb服务。我有办法 这将为我提供用户的用户设置。在请求中,我必须 当我使用固定令牌和 确认响应将正常,但当我调用web服务时 第二个或第三个答案是这样的

这是我的SOAP响应

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Cannot use object of type stdClass as array</faultstring>
</SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

SOAP-ENV:服务器
无法将stdClass类型的对象用作数组
为此我必须做什么?这是我的错还是web服务的错

提前感谢,

在parserDidEndDocument中使用此方法:


查看faultstring:无法将stdClass类型的对象用作数组


可能是您发送了错误的参数。

这是您的错误,如所示,web服务方法需要的不是stdClass类型。我建议您仔细查看.wsdl文件以查看预期的参数


此外,我认为这将非常有用:

另一个建议:www.sudzc.com我使用相同的参数调用的这个方法将给我输出,但是在这个WS的第二次和第三次调用中,给了我这个消息。
NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (NSHTTPCookie* cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) {
    [cookies deleteCookie:cookie];
}