> Are there imode Java APIs for SOAP and XML-RPC ?
Doubt it.
> Does the imode Java API support some of the standard java.net packages?
No, it uses javax.microedition.io, but Docomo Java (DOJA) only supports HTTPConnection (which is all
you need, but read on).
com.nttdocomo.io
Interface: HttpConnection
All supers:
javax.microedition.io.Connection, javax.microedition.io.ContentConnection,
javax.microedition.io.InputConnection, javax.microedition.io.OutputConnection,
javax.microedition.io.StreamConnection
It would be simple enough to implement, except for the appsize limitations on imode. Don't expect to
write yourself a handy API that you can use as a webservices interface and simply "import
myCoolness" because 10K comes quick. You're better off writing service specific code, which is the
antithesis of Java, XML and the whole SOAP modus operandi. Nonetheless, you can't much expect to fit
a parser or even encoder in less than several KB which then limits your app to a matter of bytes
which is useless. I do all my backend transfers using plain text either comma delimited or newline
delimited. Better yet is to send a predecided string length similar to the old fashioned binary
read/write method. Client/server data transfer shouldn't consume the majority of your app's code,
(unless that's all your doing), so SOAP isn't really a good alternative for imode.
Then of course there is the packet transfer fee: i.e. even if there were a builtin API for SOAP,
your clients won't appreciate the beauty of XML as much as they will dislike paying higher phone
bills for your services. Better to keep it short n sweet, using binary flags where possible, and
stored strings accessed only by array index number.
Anyway, that's my opinion, but there's probably plenty more. Not sure how many programmers are on
this list though, seems like mostly consultants and chtml people. But someone might have a different
answer. My company only produces a few imode apps, so it's not one of my focuses, but I have never
heard of anyone using SOAP with imode. Hope that helps.
Douglas MacDougall
GNA Inc. Japan
Received on Mon Jan 28 05:49:46 2002