【发布时间】:2015-12-04 10:13:28
【问题描述】:
我正在使用http://wsdl2swift.com/ 创建一个调用 asmx-WebService 的 iOS Swift JSON 客户端。
一切都很好,我可以建立连接,在响应 XML 中接收结果 JSON-String,并在库“makeSoapConnection”-Function 中打印。
但如果我打电话
let client = SyedAbsarClient()
let gam = GetAllBla()
gam.cpMyId = "12"
client.opGetAllBla(gam){(response: GetAllBlaResponse?, error:NSError?) -> Void in
print(response?.cpGetAllBlaResult)
}
我只得到“零”
【问题讨论】: