0

I am having a task,considering one emulator as server and i have to access a web service from the client emulator.I think this is not possible in android,if anyone knows about it please send some code snippets to do this.

Nikhil
  • 16,194
  • 20
  • 64
  • 81
Rajapandian
  • 9,257
  • 24
  • 74
  • 86

1 Answers1

2

Android's java.net package is pretty much the same as Java's so you can use Sockets and ServerSockets for TCP communication or a DatagramSocket for UDP.

However, there is currently no support for SOAP webservices in the android SDK but you can use third party libraries or build your own. Have a look at the following questions:

Community
  • 1
  • 1
Josef Pfleger
  • 74,165
  • 16
  • 97
  • 99
  • I find it interesting that both questions I linked to were asked by a user with the exact same name (but different user id). Did you re-register? – Josef Pfleger Jul 08 '09 at 06:41