I ran into the following problem. I am trying to use Alamofire to access multiple web services in my application. This is the code I'm using:
Alamofire.request(.GET, "https://httpbin.org/get")
.validate()
.responseJSON { response in
switch response.result {
case .Success:
print("Validation Successful")
case .Failure(let error):
print(error)
}
}
the result for this is “Successful validation”, and that’s correct, but the problem is that when I try to call my own service, this is the web service URL if someone wants to check this:
https://ratid.com/RapidSentry /MiOSService.svc/GetUserIdentity ... This web service is working fine, as you can see, but when I call the same code but with my URL, I get the following error:
Error Domain=com.alamofire.error Code=-6003 "Response status code was unacceptable: 500" UserInfo={NSLocalizedFailureReason=Response status code was unacceptable: 500}
- Android GET-.
, .
: Xcode 7 Swift.