axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <>
Subject Re: axis2: noise on Soap-messages
Date Fri, 23 Mar 2007 10:33:16 GMT
*Ooops.. Seems like a issue with the site.. Please find the contents of that
article below..*



*Question:* Extraneous characters appear in the SOAP messages sent using
Axis2 making my non-Axis2 web service or web service client to fail.

*Answer:* These characters (see the example message traces given below)
appear due to HTTP Chunking, which is a feature introduced by HTTP
1.1specification to efficiently transfer large HTTP Messages without
the whole message in memory. HTTP Chunking transfers the message by breaking
it in to chunks. If you have a closer look at the message, you will be able
to notice a relationship between the extra numbers appearing and the message
size (or specifically with the size of the chunks). You can also notice the
HTTP header "Transfer-Encoding: chunked" and the absence of the
content-length HTTP header. It is advised to use HTTP Chunking with Axis2
whenever possible, specially if you are dealing with large messages like
messages with attachments.

HTTP Chunking might not be supported by some (older) servers or clients
which do not support HTTP 1.1. Upon receiving of a "chunked" message, those
servers might fail giving an error while parsing the message. In order to
communicate with them you can disable the HTTP Chunking in Axis2 as follows.

    *Deployment time commenting out or removing the following in axis2.xml*
        <parameter name="Transfer-Encoding">chunked</parameter>

    *Runtime using Axis2 client side options object*

 Example chunked message snapshot 1:

POST /axis2/services/EchoXMLService/echoOMElement *HTTP/1.1*
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
*Transfer-Encoding: chunked*

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="">
         <ns1:echoOM xmlns:ns1="http://org.apache.axis2/xsd">
            <ns1:myValue>Isaac Asimov, The Foundation Trilogy</ns1:myValue>

Example chunked message snapshot 2:

POST /axis2/services/EchoXMLService/echoOMElement *HTTP/1.1*
Content-Type: multipart/related; boundary=MIMEBoundary; ..............;
User-Agent: Axis2
*Transfer-Encoding: chunked*

content-type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
content-transfer-encoding: binary
content-id: <>

<?xml version='1.0' encoding='UTF-8'?>
content-type: image/jpeg
content-transfer-encoding: binary
content-id: <>


On 3/23/07, Tromp Bert <> wrote:
>  Thilina,
> Thanks for the fast reply, but I can't access the page you've advised. I
> registered on the siteand logged in, but I still get the error that I don't
> have the necessary priveledges
> Thanks again,
> Bert
> -----Original Message-----
> *From:* Thilina Gunarathne []
> *Sent:* Friday 23 March 2007 11:02
> *To:*
> *Subject:* Re: axis2: noise on Soap-messages
>   *104*
> > <?xml version='1.0' encoding='UTF-8'?>
> > <soapenv:Envelope xmlns:soapenv="
> > ">....<soapenv:Envelope>
> > *0*
> >
> > *</Message>*
> >
> > Is there something wrong with my configuration or what should I do to
> > make it go away?
> >
> Check this
> Make sure to set the mentioned property to Boolean.FALSE...
> --
> Thilina Gunarathne  - -
>  ------------------------------
>  This message and its attachments may contain confidential information
> protected by intellectual property rights or other rights & is strictly for
> the exclusive use of the intended recipient. It is strictly prohibited to
> copy, alter or disclose this message or its contents to any other person
> without Elia's prior consent. If you are not the intended recipient of this
> message, please inform the person who sent it and delete the message from
> your system. Elia is not liable for any direct or indirect damage arising
> from errors, inaccuracies or any loss in the message, from unauthorized use,
> disclosure, copying or alteration of it or as a result of any virus being
> passed on. This message does not constitute any commitment from Elia except
> when expressly otherwise agreed between the intended recipient and Elia.
> U vindt de Nederlandse versie van deze disclaimer op onze internetsite
> Vous pouvez découvrir la version française de ce disclaimer sur notre site
> internet
>  ------------------------------

Thilina Gunarathne  - -

View raw message