0

I want to use my own web service in my android application. Which will be the best way to do this?
(I haven't written my web service yet)

I checked the other question also like How to call a SOAP web service on Android but they are too old.

Sorry, for repetitive question but I want to know if any new and better option is available.

Community
  • 1
  • 1
Ajinkya
  • 22,324
  • 33
  • 110
  • 161
  • The question itself may be a year old, but the answers are still perfectly valid! Have a look at REST, there are plenty of easy tutorials to follow :) – Jimmy Jun 30 '11 at 12:18
  • @James: Most of the answers tell about `SOAP` while rest mentioned that `REST` is more suitable. So got confused. – Ajinkya Jun 30 '11 at 12:25
  • Read up on the debate between the two each has their own benefits....http://www.petefreitag.com/item/431.cfm I've worked with ksoap2/SOAP on android and its really not bad or diffcult then again REST is also very simple. – IZI_Shadow_IZI Jun 30 '11 at 12:39
  • Now I am thinking about `REST`. – Ajinkya Jun 30 '11 at 12:49

1 Answers1

0

Your best bet is to write a REST based web service. Use xml or json for data marshalling.

Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101