Ios wsdl2swift仅获取nil作为结果,连接结果正常
我正在使用创建一个调用asmx Web服务的iOS Swift JSON客户端 一切都很好,我可以构建连接,在响应XML中接收结果JSON字符串,并将其打印在库“makeSoapConnection”函数中 但如果我打电话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
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)