PDA

View Full Version : Call a REST webservice from iPhone?




hajira
Aug 15, 2012, 04:33 AM
I have a REST webservice with Get method in which I'm passing a parameter and retrieving the results from SQL database .Now I have to consume that websevice in iPhone using XCode .My url is like
http://localhost:8732/IServices/RoleService/json/RolebyCPid/?companyId={23834B9B-88DF-4B72-AF0B7B152E23E124}&providerId={4257bc1a-3386-4464-9c74-0645ba1e08a4}
Now how to call this url and also how to pass parameters using Xcode?



macingman
Aug 15, 2012, 04:46 AM
I think there is an iOS/iPhone developer forum here for these type of questions. [Edit: Moved]

dejo
Aug 15, 2012, 08:53 AM
Perhaps this Ray Wenderlich tutorial will help:

How to Write an iOS App That Uses a Web Service (http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service)