REST Web Service for ResKit - ios

I am quite confused on what REST API to follow that will sync with RestKit.
I have a problem in making a put/post/delete request.
One of the REST API I follow is from NetTuts which I found very hard to sync with RestKit.
Any suggestions? Thank you so much!

RestKit is a generalized framework for consuming JSON/XML over HTTP. It will interoperate with any backend, providing the payload can be expressed as key-value coding key paths.

Related

Data fetch using OData API in ios

I an new in iPhone.Currently i am working on OData based web service. But i am little confusing with how to call webservice and getting response with OData.I have below information with me.
The metadata of this service is located at :
http://enumbler.azurewebsites.net/odata/$metadata
and Base url is :: http://enumbler.azurewebsites.net/odata/User
Can anyone help me to solve this?
Thanks in advance.
I'm not familiar with IOS, but I may help with common way to consume OData services. Take one OData sample service TripPin, if you want to get all airlines, you can simple calling http://services.odata.org/V4/TripPinService/Airlines. The response is in JSON payload, you can consume this either directly dealing with JSON or use some OData client libraries for IOS. One difference your service and the sample service has may be that TripPin is OData V4 and your service is OData V3. Maybe your service doesn't support JSON but ATOM payload, but you can deal with either way I mentioned above. For more detailed information of OData, you can go directly to OData.org. Hope I helped you with part of your problem.

Should i use wsdl or json for my ios app?

I am writing an iOS app which will have to fetch some data from a server. Is it better to use WSDL and SOAP to get these data from a web service, or should i use JSON?
JSON is good if you don't have any security stakes. Otherwise, you should use a secured data exchange protocol like SOAP or maybe OAuth.
Honestly where I've worked with JSON alot i would personally recommend it because it's a really easy way to send data and to parse data. If your going to be fetching from a server using mysql or something along those lines I would recommend you go with JSON.

Need assistance regarding REST service authentication in objective-c

I am trying to consume rest based web service for the first time so I searched for tutorials and examples I found these link1 & link2
My colleague created a simple rest service, first without authentication I successfully fetched the json formatted data but same service with form based authentication I am unable to call it which include adding id, password in http header [request addValue:#"id:password" forHTTPHeaderField:#"Authorization"];, using willSendRequestForAuthenticationChallenge but no success.
I also found tons of RestKit articles but its problem is its too heavy, my requirement for project is not that complex.
Please any one can provide good and complete tutorial or any way to import Restkit required functionality not the whole 16mb framework?
I recommend AFNetworking ,it is easy to integrate and very reliable.
You can use AFURLConnection -setAuthenticationChallengeBlock: to respond to authentication challenges.

Wsdl Parsing in ios

Can any one help me how to consume WCF services in an iPhone application?
I am searching it desperately. I have also installed the wsdl2objc from http://code.google.com/p/wsdl2objc/. but still I am not getting any clue that How can I use it to worth get the correct responce.
Please get me out of this trouble...I need the right solution!!
Thanks.
If you are about to use the SOAP services than my advice is don't.....because for SOAP services you may able to construct the base classes using http://code.google.com/p/wsdl2objc/ but the response you will get from the service will give the references and the whole data structures along with response and you can't parse the response.
You can use this wonderful framework called CSOAP

calling JSON Service from Objective C with MULTIPLE parameters

I've found code samples for calling a JSON service, but I'm not sure how to add multiple parameters. Could somebody help me out?
My JSON Service is a .NET WCF service SearchTalent(talentName, agentName, agencyName)
I think you will need to find out the URL's of the service, not the .Net representation of the service.
I'd suggest you use Restkit to interface with the service once you know the urls. You might want to look into that.

Resources