这是我的肥皂请求:
SoapRequest* _request = [SoapRequest create: _target action: _action service: self soapAction: @"" postData: _envelope deserializeTo: /*[[DMDDmdInfo alloc] autorelease]*/ [NSMutableArray array]];
我应该收到 DMDDmdInfo 对象的 NSMutableArray。相反,我收到 NSDictionaries 的 NSMutableArray。
这就是我在 SoapRequest:connectionDidFinishLoading 中的内容:
CXMLNode* element = [[Soap getNode: [doc rootElement] withName: @"Body"] childAtIndex:0];
if(deserializeTo == nil) {
output = [Soap deserialize:element];
} else {
if([deserializeTo respondsToSelector: @selector(initWithNode:)]) {
//element = [element childAtIndex:0];
output = [deserializeTo initWithNode: element];
} else {
NSString* value = [[[element childAtIndex:0] childAtIndex:0] stringValue];
output = [Soap convert: value toType: deserializeTo];
}
}
您能否帮我解决这个问题,以获得所需的结果:NSMutableArray of DMDDmdInfo objects?