I need to consume some .NET asmx webservices that are currently implemented in some website. I need to create an app that consumes those webservices in the same manner as the webpsite does. There are two problems. First, I have no specification about those webservice methods (calls, used format and etc). And second, I only have build an app that uses JSON-framework for getting JSON data from flick using its API. I guess that was done using REST webservices :) I do understand that in order to perform posts/gets to the server I need to construct a request string, then pass it to the webserver, get results, parse them (XML or JSON) and then view them. So, I don't know how to identify the format of webservices of current website. I have viewed the source of that website, saw a bunch of Javascript code files that are doing a lot of mysterious checking, validation and etc stuff. So, how to identify the correct format?
If it's a .NET ASMX service then it is always SOAP. A SOAP service exposed over HTTP will always use HTTP POST methods for communication. It should also expose a .wsdl file for you to consume and generate client code from that as well so you should not have to worry about using a JSON framework or orchestrating your own HTTP requests to that web service... your generated Objective-C client should take care of that for you.
This question seems to have the answers you need for doing this in Objective-C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With