Hi everybody,
I am trying to connect from my Android emulator in Eclipse to my local Webservice I have written in Netbeans.
I tried the following -
Code in Eclipse - HelloAndroid.java:
Code in Netbeans - HelloWorld.java:
and in Netbeans - StatusObject.java:
In my little naive World I expected the following behavior:
1. Starting the web service in Netbeans and browsing to
http://localhost:8080/HelloWorldApplication/resources/helloworld. That should give me the message: "Hello, World false" -> this works.
2. Starting my Android app which should make a HTTP put request -> no error, so I think this may work also.
3. Browsing to
http://localhost:8080/HelloWorldApplication/resources/helloworld again which should give me the message "Hello, World from Android true" -> does not work.
Could you guys give me some hint? I am pretty new to both Web Services and Android and I am a bit lost right now :-(
Thanks in advance for any help
André