wsdl2swift结果只得到nil,连接结果正常 [英] wsdl2swift get only nil as result, connection Result is OK

查看:123
本文介绍了wsdl2swift结果只得到nil,连接结果正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 http://wsdl2swift.com/ 创建一个名为asmx的iOS Swift JSON客户端-WebService。

I am using http://wsdl2swift.com/ to create an iOS Swift JSON Client who is calling an asmx-WebService.

一切都很好,我可以构建连接,在响应XML中接收结果JSON-String,并将其打印在库makeSoapConnection中 - 功能。

Everything works great, i can build the connection, receive the result JSON-String inside the response XML, and it is printed inside the libraries "makeSoapConnection"-Function.

但如果我打电话

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

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

我只得到nill

推荐答案

如网站上所述,该实用程序仍在进行中,目前,它返回实际的xml响应您可以解析

As mentioned on the website, the utility is still under progress, For now, it returns the actual xml response that you can parse

        print(response?.xmlResponseString)

这篇关于wsdl2swift结果只得到nil,连接结果正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆