dcsimg
J2ME, http and underlying protocols
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Werner_Farstad
Posted On:   Thursday, February 21, 2002 06:10 AM

The MIDP specifies that J2ME/MIDP implementations should as a minimum support the http1.1 protocol. Doesn't this also imply that the handset have to implement some version of TCP (with extension for mobility?) since http runs on TCP and all web server's on the Internet use http over TCP ? How is this as opposed to WAP that has it's own optimised protocol-stack (WDP/WTLS/WTP/WSP)? Does J2ME/MIDP and its connection-framework skip all this optimisation and implement standard TCP on the handset? Or, does the connection-framework use some of the WAP-protocols (if present on the handset) to "support" the http-protocol? If so, how can a wap-protocol (i.e. WSP) speak with a TCP-socket? Is there any gateway in this picture (like t   More>>

The MIDP specifies that J2ME/MIDP implementations should as a minimum support the http1.1 protocol. Doesn't this also imply that the handset have to implement some version of TCP (with extension for mobility?) since http runs on TCP and all web server's on the Internet use http over TCP ?


How is this as opposed to WAP that has it's own optimised protocol-stack (WDP/WTLS/WTP/WSP)? Does J2ME/MIDP and its connection-framework skip all this optimisation and implement standard TCP on the handset? Or, does the connection-framework use some of the WAP-protocols (if present on the handset) to "support" the http-protocol? If so, how can a wap-protocol (i.e. WSP) speak with a TCP-socket? Is there any gateway in this picture (like the wap-gateway)? Handsets using WAP over GPRS (and getting its own IP-address) will use UDP instead of WDP. Otherwise the WDP protocol is used (i.e. when GSM is used).


So, my question(s) is: How is this implemented in the J2ME/MIDP when basicly only IP is available. How is the http-protocol supported when GSM is used (which underlying protocols are involved)?


I'am particularly interested in how the Motorola Accompli008 phone/PDA implements this.

   <<Less

Re: J2ME, http and underlying protocols

Posted By:   Shane_Isbell  
Posted On:   Sunday, February 24, 2002 08:55 PM

HTTP 1.1 was the base for developing WSP, so they are similar. The mobile device does not have to implement TCP to support HTTP. It may use a WAP gateway with a WAP proxy, instead. Any cookie or state management is done through the proxy.



For example:

device << WSP >> WAP Gateway << HTTP >> WAP proxy



The use of socket connections over WTP, could be tricky, since WTP does not handle streams. You could wrap the transaction piece to look like a socket and then have a proxy socket connection server. This would be inefficient and more than a little goofy, but someone will probably try it.

About | Sitemap | Contact