It's not a secret anymore!
The moose likes Java Micro Edition and the fly likes HttpConnection VS  web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "HttpConnection VS  web service" Watch "HttpConnection VS  web service" New topic

HttpConnection VS web service

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
We have two ways (?) to talk to server in J2ME , one is HttpConnection, another is web service . Which one is better ? how much cost the web service have to pay , compared to HttpConnection ?

The J2ME has JNDI support ? I mean, it can look up the remote EJB bean directly ?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

J2ME does not have JNDI, usually you will have a Servlet that the Midlet can contact. This Servlet is usually the "Web Service". As far as Web Services with WSDL, you would need a third party product to handle them, maining in the J2ME spec there is no Web Services as they are.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: HttpConnection VS web service
It's not a secret anymore!