IOS开发,如何搭建一个服务器接收手机客户端发送的json数据,实现客户端与服务器的数据交互。
服务器我想用java实现,但是不知道具体的部署过程。各位有没有做过ios后台服务器的。
最后我使用的是webservice + Axis2实现的,发布成功了,实现了文件上传到服务器的功能。在网上看到使用ASIHttp也可以实现这个功能,还没有试~谢谢大家热心的解答!
伊谢尔伦2017-04-17 11:35:56
I think it is more reliable to use the Restful mode. The main thing is that java (server side) provides API and provides it to ios calls through the json data of the response
java server side: too many choices, please refer to the following
iOS: restkit (cache json) + SDWebImage (cache image) caching mechanism can reduce server pressure
Java frameworks currently claiming to support REST include the following:
Restlet(http://www.restlet.org/)
Cetia4(https://cetia4.dev.java.net/)
Apache Axis2 (http://http://ws.apache.org/axis2/)
sqlREST (http://sqlrest.sourceforge.net/)
REST-art (http://rest-art.sourceforge.net/)
Jersey(https://jersey.dev.java.net/)
Apache CXF (http://cxf.apache.org/)
Sping3(http://www.springsource.org/)
ringa_lee2017-04-17 11:35:56
iOS uses ASIHTTP and the server uses spring. The server can just parse the HTML form