wsdl2swift只有结果为零,连接结果OK

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

一切都很好,我可以build立连接,在响应XML中接收结果JSON-String,并将其打印在库“makeSoapConnection”函数中。

但是,如果我打电话

let client = SyedAbsarClient() let gam = GetAllBla() gam.cpMyId = "12" client.opGetAllBla(gam){(response: GetAllBlaResponse?, error:NSError?) -> Void in print(response?.cpGetAllBlaResult) } 

我只得到“n”

正如在网站上提到的,该实用程序仍在进行中,现在,它返回您可以parsing的实际xml响应

  print(response?.xmlResponseString)