ASIHttpRequest call Restful web service?

Can ASIHttpRequest call a Restful web service? I knew that Remkit was good at this. If not, is there any easy way to convert?

Is ASIHttpRequest good for calling a soapy web service?

Thanks for your comments!

0
source share
1 answer

ASIHTTPRequest just makes an HTTP request. No more, no less. Since REST is also just an HTTP request, you can use ASIHTTPRequest just fine with a calm web service. However, it does not parse the response, so if the answer is JSON, you still have to parse it.

You can also use ASIHTTPRequest for SOAP, but you need to build XML yourself (or use some other library) and parse the XML response yourself. For SOAP, you can use http://sudzc.com/ instead.

+3
source

Source: https://habr.com/ru/post/1387801/


All Articles