Looks like chunked transfer encoding. When the web server sends down your response it doesn't know the Content-Length yet so it must return the payload in chunks of known size.
The first one 310 is the size in byte sof the first (and int his case only) chunk. The 0 is a terminator that indicates no more chunks.
An HTTP client library will strip these off for you and coalesce the entity body. If you're doing the HTTP *manually* its your job.
Jim Murphy Mindreef, Inc.
Magnus Andersson wrote:
Hi,
When I get HTTP responses from Tomcat using Axis 1.1 I (And a Parlay X Web Service I) get some extra signs before and after the XML envelope. I have cut in an example of this,
As you see... there is a "310" before the first XML line in the HTTP response, and a "0" after the XML. Why Why Why ???? And what can I do about it. ???
Thanks in advance,
Magnus
-----CUT----- the http response
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 04 May 2004 13:20:10 GMT
Server: Apache-Coyote/1.1
Connection: close
310
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring></faultstring>
<detail>
<ns1:UnknownReservationException xsi:type="xsd:string" xmlns:ns1="http://www.csapi.org/wsdl/parlayx/payment" &g t; Reservation timed out <http://www.csapi.org/wsdl/parlayx/payment" > Reservation timed out>.</ns1:UnknownReservationException>
<ns2:exceptionName xmlns:ns2="http://xml.apache.org/axis/">org.csapi.www.wsdl.parlayx.payment.v1_0.service.UnknownReservationException</ns2:exceptionName <http://xml.apache.org/axis/">org.csapi.www.wsdl.parlayx.payment.v1_0.service.UnknownReservationException</ns2:exceptionName>>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
0 -------END OF CUT
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup <http://mail01.mail.com/scripts/payment/adtracking.cgi?bannercode=adsfreejump01>
