AlamofireSoap
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
Xcode 9.0 or later with Swift 4.2
Installation
AlamofireSoap is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AlamofireSoap'Usage
Making a Request
import AlamofireSoap
AlamofireSoap.soapRequest("http://www.dneonline.com/calculator.asmx", soapmethod: "Add", soapparameters: ["intA":"1","IntB":"2"], namespace: "http://tempuri.org")Response Handling
Handling the Response of a Request made in Alamofire involves chaining a response handler onto the 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 requestAuthor
Shakeeb Mancheri, [email protected]
License
AlamofireSoap is available under the MIT license. See the LICENSE file for more info.