Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME and web services

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am writting an application which is searching for employee details when the name is entered. My friend told me that I can use web services to retrieve data(He mentioned some thing about XML). I have no idea what he is saying. I just wanted to know whether it is possible to use web services with J2ME(MIDlet) and if can how?
Thank you in advance.....
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I will refer you to an article I published almost exactly two years ago today:

http://www.javaworld.com/javaworld/jw-08-2002/jw-0823-wireless.html
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks once again for replying very quickly. I will just go through and try to figure out. Thanks..
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am little bit confused now. Can you kindly tell me what are the basic steps that I have to follow to use a web service. I mean what to do I have to do. Thanks...
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to parse the XML data into Java objects so that your program can use them. Two important XML parsers on J2ME are kXML (for plain XML) and kSOAP (for SOAP Web services). Of course, JSR 172 would change everything in the future.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic