Re: Error in sending Soap Messages (size > 2K)
"Geetha P Eringathodi" <[email protected]> Wed, 23 Oct 2002 17:51:07 +0000
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Stephan, I guess it was indeed becoz of chunked encoding. MIDP spec requires that support for HTTP 1.1 be provided (which includes support of chunked encoding). If the message is over 2K by default, Transfer-Encoding is set to chunked So switiching to Tomcat 4.0 which is HTTP 1.1 compliant from version 3.3.1 solved the problem. Thanks Geetha > >From: "Geetha P Eringathodi" <[email protected]> >To: [email protected] >Date: Tue, 22 Oct 2002 18:25:29 +0000 >Subject: Ksoap: Re: Ksoap digest, Vol 1 #219 - 3 msgs >Reply-To: [email protected] > >Stephan, >Thanks for your reply. The characters are : >(some characters in the begining and a 0 in the end) > >example 1: >.......... >cec ><SOAP-ENV:Envelope...... > ></SOAP-ENV:Body></SOAP-ENV:Envelope>0 > >example 2: >----------- > > >d9f > > ><SOAP-ENV:Envelope................... ></SOAP-ENV:Body></SOAP-ENV:Envelope> >0 > >geetha > > > > >Message: 3 > >Date: Mon, 21 Oct 2002 19:56:24 +0200 > >From: Stefan Haustein <[email protected]> > >Organization: Univ. Dortmund FB 4 LS 8 > >To: [email protected] > >Subject: Re: Ksoap: Error in sending Soap Messages (size > 2K) > >Reply-To: [email protected] > > > > > > > >Geetha P Eringathodi wrote: > > > Hi, > > > I have a problem while sending a SoapMessage (size > 2048) from a midp > > > client to a servlet running on Tomcat. > > > Is there a limitation to the size of the message on post / get ? > > > > > > If, In HttpTransport.java we have, > > > connection.setRequestProperty ("User-Agent", "kSOAP/1.0"); then no > > > exceptions are thrown but the resultant SoapMessage is > > > corrupted(Characters added before and after SoapEnvelope tag) > > > > > > if it is changed to > > > connection.setRequestProperty ("User-Agent", "Profile/MIDP-1.0 > > > Configuration/CLDC-1.0"); then an IOException is thrown > > > > > > Any ideas how to deal with sizes greater than 2K. > > > >I am not sure.... perhaps this problem is related to chunked encoding? > >can you send a wire dump of the additional characters which are sent > >to the server? > > > >Best, > >Stefan _________________________________________________________________ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp