logo       

Re: Web services and J2ME: msg#00234

java.sun.kvm

Subject: Re: Web services and J2ME

You're right Nathan, this is the smart way... ;-)

Very often, using the "fully politically correct" method to access to a SOAP
server induces a heavy and slow solution that is not acceptable on a mobile
device.
Nathan's suggestion is very similar to the 2nd one suggested by Emmanuel
(may be a bit heavier on the mobile side) but it does not need any server
side effort.
We have already used such a method in a real application. If you wish, you
can read http://www.wapaka.com/wapaka/include_Webservices/WebServices.pdf :
this paper is bound to our proprietary product but the method explained
there is quite generic.


Franck LEFEVRE
DigitalAirways
<everywhere-internet-technologies java markup href="http://www.wapaka.com";
/>
******************************************************
* Don't skate to the puck; skate to where it's going
* Wayne GRETZKY, Ice Hockey Legend
******************************************************



-----Message d'origine-----
De : A mailing list for KVM discussion
[mailto:KVM-INTEREST@xxxxxxxxxxxx]De la part de Nathanial Freitas
Envoyé : mardi 30 septembre 2003 15:44
À : KVM-INTEREST@xxxxxxxxxxxx
Objet : Re: Web services and J2ME


Since you presumably know the finite set of SOAP methods you will be
calling, you can hard-code the request strings on the client-side, and just
replace the variables with your dynamic request data. You can approach the
responses in the same way- just do some basic sax XML parsing instead of
worrying about the whole SOAP structure.

Obviously, you will be losing the full power, flexibility, and architectural
integrity of using KSOAP (or a similar SOAP stack), but sometimes in this
crazy embedded world, you have to give that up in exchange for efficiency.

Regards,
Nathan

/***********************
* Nathanial X. Freitas
* Senior Manager, Java
* Palm, Inc.
* www.palm.com/java
************************/

===========================================================================
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