Troj
Troj

Reputation: 11911

Service android json or soap?

iam about to call a service from my server. Should I use Json or Soap?

My service is in asp.net

Are there not any packages in android that has to do with the service connections?

Upvotes: 1

Views: 1756

Answers (4)

kenyee
kenyee

Reputation: 2349

JSON is always easier...it's much easier to parse and doesn't need a DTD..

Upvotes: 0

Ben
Ben

Reputation: 16524

Json will also be more efficient than soap as well. Check out the Google Io videos from2009. There is a great talk about optimizing apps on android and it specifically deals worth this topic...

Upvotes: 0

Primal Pappachan
Primal Pappachan

Reputation: 26525

On how to use JSON in Android Sending and Parsing JSON Objects

You could use Http Client and MultiPart Entities for sending images and large text files. Sending images using Http Post

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006584

IMHO, a REST interface encoded in JSON will be easier in Android, since there are enough classes built in to handle that. SOAP requires a third-party JAR (e.g., kSOAP2).

Upvotes: 1

Related Questions