Originally posted by Anil Vupputuri:
Okay. I wud like to know whether these small devices can understand HTTP requests & responses. To my ignorance, I believe that these devices understands only WAP but not HTTP, correct me if Iam wrong. Are there any API's which dealt with
writing servlets for these small devices.
MIDP requires HTTP support. Most other profiles likely will, too, probably all of them. SO you can write a MIDlet which can send HTTP get and post requests to a server.
The server can be implemented anyway you want, as long as it supports HTTP; but if you're using
Java, you'd use servlets. You would just use the standard servlet API, but simply make sure the content of the HTTP response generated by the servlet was appropriate for the device (wrt small screen and limited bandwidth).
WAP is simply a protocol put out by a standards group (IETF?). A particular hpone may or may not support it. The MIDP spec doesn't say anything about it. It's unlikely other J2ME profiles will acknowledge it either. In fact, I was at a talk earlier today in which the speaker hinted that the motivations for WAP were apparently not quite true, and so there is some movement to phase out the W* protocols.
--Mark