【发布时间】:2012-02-02 15:09:06
【问题描述】:
我正在使用 sudz-c 生成的 SOAP 框架,我的服务调用似乎工作正常,但是当我尝试对数据执行任何操作时,iOS(模拟器)崩溃。
这是服务调用...
[service hentOpgaveliste:self action:@selector(handleToDoList:) userid:userNameTxt.text pdaid:[pdaIdTxt.text intValue]];
对于handleToDoList:我正在使用示例中提供的标准方法,它成功地对我的结果进行NSLogs。
....
CXMLNode *xmlResult = (CXMLNode*)value;
NSLog(@"HentToDo: %@", [xmlResult description]);
....
从这里,我得到你在下面看到的日志。
{
hentOpgavelisteResult = {
diffgram = "<null>";
schema = {
element = {
complexType = {
choice = {
element = {
complexType = {
sequence = {
element = "<null>";
};
};
};
};
};
};
};
};
当我尝试 NSLog 如下所示的子计数或任何其他 CXMLNode 实例方法时,我得到以下异常。
....
NSLog(@"Children %@", [xmlResult childCount]);
....
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary childCount]: unrecognized selector sent to instance
不知道从这里去哪里。我看到博客 such as this 谈论有关 touchXML 和命名空间的问题,但在我看来,我有一个命名空间。
任何想法都将不胜感激,当谈到 SOAP 时,我是菜鸟类。
【问题讨论】:
-
刚刚在 sudz-c 谷歌组页面上找到了这个,我遇到的问题几乎相同。 groups.google.com/group/sudzc/browse_thread/thread/…