axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Fremantle <...@hursley.ibm.com>
Subject Re: Axis C++ client program aborts when response HTTP has "Transfer-Encoding: chunked"
Date Thu, 08 Apr 2004 16:57:18 GMT
Folks

We have seen the same behaviour talking to another HTTP 1.1 server. Is 
there a fix for this? Or a way of switching back to HTTP 1.0 to bypass this?

Paul


Sudhin Bengeri wrote:

> Hi,
>
> I have implemented a simple Axis C++ client that communicates with a 
> web service written in Java (Axis Java 1.1). Using TCPMonitor I found 
> out that the web service uses "chunked" transfer encoding which the 
> Axis C++ client is unable to parse and program aborts. The program 
> abort occurs in function SoapParserExpat::ParseNext(), when it calls 
> the "XML_Parse (...)" function. I have include the HTTP response below:
>
> HTTP/1.1 200 OK
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Wed, 24 Mar 2004 18:25:07 GMT
> Server: Apache-Coyote/1.1
>
> 216
> <?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>
>   <ns1:serviceMethodResponse 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
> xmlns:ns1="http://wtn12038:1234/axis/services/MyService">
>    <ns1:serviceMethodReturn 
> xsi:type="xsd:string">Sudhin</ns1:serviceMethodReturn>
>   </ns1:serviceMethodResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> 0
>
> Note the "216" before the start of the SOAP envelope and the "0" after 
> the envelope. Is the Axis C++ team thinking of supporting this format 
> feature?
>
> Thanks,
> - Sudhin.
>
>
> -- 
> Sudhindra S. Bengeri
> Modeling Engineer
> OPNET Technologies Inc.,
> (240) 497-3000 x2414
>
> ====================================================
> Register for OPNET's Online Technology Workshops
> http//www.opnet.com/TechWorkshops/
> ====================================================
> Register for OPNETWORK 2004 (Aug 30 - Sept 3, Washington DC)
> http://www.opnet.com/opnetwork2004/
> ====================================================
>
>


Mime
View raw message