开发者

Android client and PHP server: common practice in communication

Good day!

I'm a web developer who has to choose a way\protocol for web-server (LAMP) <-> android app communication.

I personally prefer SOAP, but it seems that support of it on Android is bad. Android seems to have a Httpclient and I'm comfortable with JSON so we can go with plain POST requests with JSON data in and out.

REST is a modern word, is the开发者_JS百科re something like SOAP/WSDL stuff but for JSON/plain Http request

Are there any proven Android-friendly solutions for client\server communication?


The ksoap2-android project works just fine if you prefer SOAP. Otherwise you can look at gson or jackson or the json support in the sdk for REST support.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜