logo       

Re: Web services and J2ME: msg#00236

java.sun.kvm

Subject: Re: Web services and J2ME

Hi Emmanuel,

If you can deploy a servlet, it sounds like the J2ME Wireless Connection
Wizard will do what you need. It is a plug-in module for Sun ONE Studio
that generates client and server code for J2ME devices to connect to
servers. It is focussed on low client footprint and low network bandwidth.

http://developer.java.sun.com/developer/earlyAccess/j2meconwizard/index.html
http://wireless.java.sun.com/midp/articles/wizard/

Daniel

Eric Giguere wrote:

You're encountering the classic tradeoff: more generalized features leads to
larger code. I bet kSOAP supports more than what you need. If you can't
change anything on the server, your best bet would be to write your own
custom code for invoking the customer's web service -- you should be able to
save some space that way.

Otherwise, the server needs to get involved. You didn't mention what
platform the customer is using, but it sounds like they're not running
inside a servlet container since you mentioned having to install Tomcat in
their environment. A Java servlet would be trivial to write as an interface
to between the MIDlet and the web service. If that's not an option, though,
you should consider writing a server extension appropriate for their
platform. This may require some work on your part to learn it, but it
should be hard. Basically you just need to be able to parse a POST request
and then invoke a web service. There would likely be helper routines for
invoking the web service, so really you just need to figure out how to send
the data you need across the wire. A simple text-based format might be all
you need, but I can't say without knowing exact details. Anyhow, don't shy
away from doing it just because it's not Java-based.

Eric



===========================================================================
To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@xxxxxxxxxxxx and include in the body of the message "help".



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise