0

Possible Duplicate:
how to call RESTful web service from android?

This is my web service link: "localhost:8080/data/resources/myapp.info/1".
How can i call it in java for an android application?

Community
  • 1
  • 1
  • Possible duplication: http://stackoverflow.com/questions/6046409/how-to-call-restful-web-service-from-android – Alex K Dec 03 '11 at 15:00
  • What type of web service? SOAP or RESTful? What is "localhost" relative to - the Android device, or something on your desktop, etc.? – ziesemer Dec 03 '11 at 15:00
  • It's a restful web service, localhost... : it is the link of the service that is hosted locally on glassfish – user1079080 Dec 03 '11 at 15:06

1 Answers1

0

I've had problems with localhost on the emulator. Try replacing localhost with the ipaddress of the machine you calling (using ifconfig). This worked for me yesterday.

iaindownie
  • 1,046
  • 12
  • 28