Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.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
Ios wsdl2swift仅获取nil作为结果,连接结果正常_Ios_Json_Swift - Fatal编程技术网

Ios wsdl2swift仅获取nil作为结果,连接结果正常

Ios wsdl2swift仅获取nil作为结果,连接结果正常,ios,json,swift,Ios,Json,Swift,我正在使用创建一个调用asmx Web服务的iOS Swift JSON客户端 一切都很好,我可以构建连接,在响应XML中接收结果JSON字符串,并将其打印在库“makeSoapConnection”函数中 但如果我打电话 let client = SyedAbsarClient() let gam = GetAllBla() gam.cpMyId = "12" client.opGetAllBla(gam){(response: GetAllBlaResponse?, error:NSErr

我正在使用创建一个调用asmx Web服务的iOS Swift JSON客户端

一切都很好,我可以构建连接,在响应XML中接收结果JSON字符串,并将其打印在库“makeSoapConnection”函数中

但如果我打电话

let client = SyedAbsarClient()
let gam = GetAllBla()
gam.cpMyId = "12"

client.opGetAllBla(gam){(response: GetAllBlaResponse?, error:NSError?) -> Void in   
   print(response?.cpGetAllBlaResult)
}

我只得到“nill”

正如网站上提到的,该实用程序仍在开发中,目前,它返回您可以解析的实际xml响应

        print(response?.xmlResponseString)