Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用SUDZC的Objective C webservice(带有php服务器)_Php_Objective C_Ios_Web Services_Ios5 - Fatal编程技术网

使用SUDZC的Objective C webservice(带有php服务器)

使用SUDZC的Objective C webservice(带有php服务器),php,objective-c,ios,web-services,ios5,Php,Objective C,Ios,Web Services,Ios5,我正在objectcive-c中为我的Web服务使用sudzc。服务器端是基于PHP的。我在WSDL中将php数组定义为ArrayOfstring。当sudcz SoapRequest从服务器获得响应时,存在有效的XML。但当在sudzc生成的类ArrayOfString initWithNode:element的实例上调用方法时,(元素是CXMLElement类型),什么都不会发生。并且生成的ArrayOfstring实例为空。当我输入NSLog(ArrayOfstring的实例)时,它打印的

我正在objectcive-c中为我的Web服务使用sudzc。服务器端是基于PHP的。我在WSDL中将php数组定义为ArrayOfstring。当sudcz SoapRequest从服务器获得响应时,存在有效的XML。但当在sudzc生成的类ArrayOfString initWithNode:element的实例上调用方法时,(元素是CXMLElement类型),什么都不会发生。并且生成的ArrayOfstring实例为空。当我输入NSLog(ArrayOfstring的实例)时,它打印的只是周围的文本,其中没有任何内容。或者,当我在字符串ouptpu中调用[SOAPDeserialize:element]时,我只能看到返回的xml集的最后一个元素。有人有什么建议来解决这个问题吗?

老兄,同样的问题。。它不允许仅通过传递int或NSArray等“普通”字段来初始化该对象。。 但是如果您想查看实际结果,请检查request.receivedData,它是NSData,您需要将其转换为NSString,然后它是纯xml格式,现在您需要解析xml并获取所需的结果

主要问题是处理程序方法的(id)没有给出任何信息。此外,如果我想初始化一个字段(服务创建类型),首先,我必须创建cxmldoc,然后是cxmlelement,然后是cxmlnode,然后可以将其初始化为受尊重的对象