problem parsing WBXML

Amit Mohan <[email protected]> Wed, 19 Mar 2003 17:27:02 +0100
Newsgroups gmane.comp.java.enhydra.kxml
Organization Media Style
Message-ID <[email protected]>
Hello All,
WHen I download the compressed WBXML via servlet to my MIDP CLient,
I am unable to receive the correct compressed WBXML. When I try to
parse it on the client, I dont reach the event : Xml.END_DOCUMENT.
As such, though I can see all the correct information , but because
of some enycryption problem, the parser exits the loop with
error:  java.io.IOException: id 13 undef.

Furthur, I get this warning when using GET method to get the
response(WBXML string) from the servlet:

16:37:45,780 WARN  [Jetty] WARNING: Invalid length: Content-Length=139 bytes
written=141 for http://localhost:8080/Helloworld/test

Is it because of this 2 bytes encryption that I dont recv the proper
WBXML?

I would be grateful if anyone of you can show me how to successfully
send and recv a WBXML document between the client and the servlet?

I have same tagTable[] , attrStartTable[] and attrValueTable[] on both
the server and the client to write and parse the WBXML document
respectively...I am not interested in sending the Tagtables with
WBXML..

Thanks,

Best regards,
 Amit
 mailto:[email protected]