【问题标题】:wsdl2swift get only nil as result, connection Result is OKwsdl2swift 结果只得到 nil,连接结果正常
【发布时间】: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)
}

我只得到“零”

【问题讨论】:

    标签: ios json swift


    【解决方案1】:

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

            print(response?.xmlResponseString)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-02
      • 1970-01-01
      • 2018-06-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-13
      • 2021-06-29
      相关资源
      最近更新 更多