Skip to content

ShakeebM/AlamofireSoap

Repository files navigation

AlamofireSoap

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Xcode 10.0 or later with Swift 5.0

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 request

Author

Shakeeb Mancheri, shakeeb818@gmail.com

License

AlamofireSoap is available under the MIT license. See the LICENSE file for more info.

About

Extension for Soap Webservice to Alamofire

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published