[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ksoap: problems with kSOAP on Nokia 6600


Hi,

I have strange problems with kSOAP on Nokia 6600.
I've made an application who calls an Web Service (.NET).
Everything is working very well on Nokia 7650.
But not on 6600 !...
After days of investigation, after tracing all requests and responses from 
the server, I've figured it out, what is the difference:
- the server sends first an HTTP code 100 response - Continue, and after 
that send the HTTP 200 (OK) response
- Nokia 7650 receives only the second response, parses the response  and 
everything is OK.
- Nokia 6600 receives all of this message. And for it, the second part 
should be actually the XML content, which is not ! So the application 
generate an Exception, because of an unexpected ParseEvent (128 = TEXT). Of 
course it is so... because the parser expects <?xml =......> and gets 
...."HTTP/1.1. 200 Continue ..... "

So, I solved the problem by modifying the HttpTransport class ( look for the 
real response in the Inputstream and create a new inputstream beginning with 
"<?xml...

I don't know... now everything works well, but I'm wondering if it isn't 
other solution for this problem?
Is it the gateway who messes all ?

Does anyone know?

Daniela

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail