Problem with chunked encoding

José María del Álamo <[email protected]> Tue, 1 Apr 2003 17:18:25 +0200
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <00cd01c2f861$f0ee2410$e704048a@CORBA2>
Hi Stefan. Thanks for the previous response.
I tried to replace the version I was using (Wireless Toolkit 1.0.3) for the latest one (Wireless Toolkit 2.0). Results: Nothing at all, the problem persists. I'm using jdk1.4 (SE) and when I test my program (The call to the Web Service) in a PC client, it works. This is the trace i get when i try to execute the program (in the emulator):

org.kxml.io.ParseException: unexpected: ParseEvent type=128 text='0204' @-1:-1
        at org.kxml.parser.AbstractXmlParser.read(+53)
        at org.ksoap.SoapEnvelope.parseHead(+19)
        at org.ksoap.SoapEnvelope.parse(+5)
        at org.ksoap.transport.HttpTransport.call(+372)
        at org.ksoap.transport.HttpTransport.call(+12)
        at es.dit.upm.composs.mobile.SelectorServicio.enviarMensaje(+38)
        at es.dit.upm.composs.mobile.SelectorServicio.commandAction(+33)
        at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
        at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+427)

So it seems the problem doesn't come from ksoap nor Kxml. I do not know what any more i can test. It could be a problem with the HTTP version (1.0)? I think no, but i do not know how to go on.

Any idea will be a great advance.

Chema.