AlamofireSoap 0.1.3

AlamofireSoap 0.1.3

Shakeeb M 维护。



  • Shakeeb Mancheri

AlamofireSoap

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

安装

AlamofireSoap 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中

pod 'AlamofireSoap'

发起请求

import AlamofireSoap

AlamofireSoap.soapRequest("http://www.dneonline.com/calculator.asmx", soapmethod: "Add", soapparameters: ["intA":"1","IntB":"2"], namespace: "http://tempuri.org")

响应处理

在 Alamofire 中处理 RequestResponse 需要将响应处理器链接到 Request 上。

AlamofireSoap.soapRequest("http://www.dneonline.com/calculator.asmx", soapmethod: "Add", soapparameters: ["intA":"1","IntB":"2"], namespace: "http://tempuri.org").responseString { response in
print("Request: \(response.value))   // original url request

作者

Shakeeb Mancheri, [email protected]

许可

AlamofireSoap 可在 MIT 许可下使用。有关更多信息,请参阅 LICENSE 文件。