|
|
Re: Web services and J2ME: msg#00233
java.sun.kvm
|
Subject: |
Re: Web services and J2ME |
Eric,
Thanks again for your answer. They are running MIcrosoft servers, trying to do everything .NET. They don't use Java at all and would rather stay all microsoft. Where could I find some info about how to write the server extension that would parse the POST and then communicate with their Web Service? Will we then be able to call this extension from the Midlet with an URL like we call the servlet on Tomcat?
Emmanuel
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".
| |