How to consume ASP.NET Web API from a Java ME Application

拥有回忆 提交于 2019-11-29 08:47:34

I think most JavaME developers do it simply by calling a website URL, like. e.g.

http://www.yourdomain.com/yourwebservice.aspx

And then yourwebservice.aspx simply returns data.

For highscore system in the games I've worked on, I'd call something like

http://www.gamename.com/webservice.php?action=gethighscores

And it would output the highscores in plain text, which my MIDlet would then read.

Here are some examples of reading the return values: http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/io/HttpConnection.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!