【问题标题】:How to invoke SOAP web service via AFNetworking and NSUrlSession如何通过 AFNetworking 和 NSUrlSession 调用 SOAP Web 服务
【发布时间】:2014-07-26 15:54:49
【问题描述】:

我已关注this tutorial,了解如何通过网络服务获取数据。
在那里作者使用PHPREST 访问服务,例如:

NSString *string = [NSString stringWithFormat:@"%@weather.php?format=json", BaseURLString];

我无法在 .NET SOAP (.asmx) web service like this one 上使用它。
如何使用NSUrlSessionAFNetworking 发送/接收数据到/从asmx网络服务?
我有一个问题,因为我不知道如何在此 Web 服务上形成对某些方法的请求并传递参数。与 SOAP 相比,它有很大不同。可能是我很愚蠢,但无法单独解决这个问题:(

【问题讨论】:

标签: ios objective-c ios7 afnetworking nsurlsession


【解决方案1】:

现在才刚刚开始。我找到了这个: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/urlloadingsystem/Articles/UsingNSURLSession.html#//apple_ref/doc/uid/TP40013509-SW1

声明:仅支持 HTTP 和 HTTPS 协议(不支持自定义协议)。

这让我有点担心。

更新:我收到了 SOAP 响应——尽管它在技术上是一个自定义协议。

【讨论】:

    猜你喜欢
    • 2012-01-25
    • 2017-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多