• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

J2ME/Web Services Examples

 
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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
Posts: 17346
11
Mac IntelliJ IDE 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic