我使用sudzc来调用web服务。 一切都很好,他打印整个肥皂xml结果我回来了,但在调用方法之前:处理程序方法我得到这个错误信息:(你也看到证明他关闭了肥皂信封,所以我得到了我想要但他不想要完成它)
...
</SynGETResponse></soap:Body></soap:Envelope>
2010-12-08 17:43:34.656 SudzCExamples[761:207] +[NSMutableArray newWithNode:]: unrecognized selector sent to class 0x26c4bdc
2010-12-08 17:43:34.658 SudzCExamples[761:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMutableArray newWithNode:]: unrecognized selector sent to class 0x26c4bdc'
*** Call stack at first throw:
(
0 CoreFoundation 0x0265bb99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x027ab40e objc_exception_throw + 47
2 CoreFoundation 0x0265d76b +[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x025cd2b6 ___forwarding___ + 966
4 CoreFoundation 0x025cce72 _CF_forwarding_prep_0 + 50
5 SudzCExamples 0x000023da -[SDZArrayOfArrayOfKnoop initWithNode:] + 297
6 SudzCExamples 0x0001a79d -[SoapRequest connectionDidFinishLoading:] + 985
7 Foundation 0x001c6b96 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 108
8 Foundation 0x001c6aef _NSURLConnectionDidFinishLoading + 133
9 CFNetwork 0x02aeb72f _ZN19URLConnectionClient23_clientDidFinishLoadingEPNS_26ClientConnectionEventQueueE + 285
10 CFNetwork 0x02bb6fcf _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 389
11 CFNetwork 0x02ae0968 _ZN19URLConnectionClient13processEventsEv + 100
12 CFNetwork 0x02ae07e5 _ZN17MultiplexerSource7performEv + 251
13 CoreFoundation 0x0263cfaf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
14 CoreFoundation 0x0259b39b __CFRunLoopDoSources0 + 571
15 CoreFoundation 0x0259a896 __CFRunLoopRun + 470
16 CoreFoundation 0x0259a350 CFRunLoopRunSpecific + 208
17 CoreFoundation 0x0259a271 CFRunLoopRunInMode + 97
18 GraphicsServices 0x02dae00c GSEventRunModal + 217
19 GraphicsServices 0x02dae0d1 GSEventRun + 115
20 UIKit 0x00433af2 UIApplicationMain + 1160
21 SudzCExamples 0x00001e12 main + 104
22 SudzCExamples 0x00001da1 start + 53
23 ??? 0x00000001 0x0 + 1
我在哪里看?请帮忙......
答案 0 :(得分:0)
不确定原因,但看起来你的类型错了。
如果你在Generated / Soap目录中grep源代码,你会看到
+ (id) newWithNode: (CXMLNode*) node
在几个文件中定义,很可能是Generated / Soap / SoapArray.h就是那个文件。
我会尝试直接联系sudzc.com,发布您的WSDL,并礼貌地寻求帮助。