• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME/Web Services Examples

 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am currently researching how a J2ME app might access a web service. I've read up on JSR-172, kSOAP etc. so I know this is possible. Now, I'd like to find some actual real-life examples of J2ME apps that use web services.

If any one can point me to such applications I'd really appriciate it. Thanks!

Richard
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you can go that route. or you can create a Servlet that calls the Web Service and reformats the XML to a simple String. I assume the Web Service does not return a lot of data since that would cost the user airtime.

But the key point in any of those cases is on J2ME you use the General Connection Framework to get an HttpConnection object and call the URL, and get the return value from that call.

Mark
 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark. Yes, I'm beginning to find out that I may have to do more work than I at first thought to create a cross-plaform implementation.

But, do you know of any examples of J2ME apps that actually access web service, in whatever fashion they do it?


Richard
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a couple that I created, but they aren't publicly published.

But they aren't too difficult, as long as you already have Servlet experience.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic