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:Now how to call this url and also how to pass parameters using Xcode?
The problem lies in your URL: "localhost" is not accessible from your iPhone. First, make sure that you can connect to your webservice from other computers (you'll need a computer name or IP address - but not 127.0.0.1). Then connect your iPhone with your local network, and try to call the webservice from the browser. Then comes your coding in xcode.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)