开发者

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 d开发者_Go百科o with the service connections?


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).


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


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...


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜