Friday, August 16, 2013

Calling .NET REST web service from iOS using AFNetworking. – Part 2

Previously I talked about calling a .NET REST full web service method that returns a string. Now I’m going to talk about a GET method, which returns an object. 

I’m going to pass the user name and going get the user details as a UserDC object. Lets see how to do that.

This how your web service interface method look like.


This is how your service method looks like.



In iOS this is how you should call it. Hear I have written my method using blocks so after calling the web service it will notify the caller.

No comments:

Post a Comment