axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
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..*

*Thanks,*

*Thilina
*

http://wso2.org/library/952
**

*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
buffering
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*
        options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
Boolean.FALSE);

 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
Host: 127.0.0.1
*Transfer-Encoding: chunked*

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

Example chunked message snapshot 2:

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

*24e4*
--MIMEBoundary
content-type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
content-transfer-encoding: binary
content-id: <0.urn:uuid:47174CDCBA7B918E391172168040614@apache.org>

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope.............................</soapenv:Envelope>
--MIMEBoundary
content-type: image/jpeg
content-transfer-encoding: binary
content-id: <1.urn:uuid:47174CDCBA7B918E391172168040620@apache.org>
............
*2000*
............
*3a*

--MIMEBoundary--



On 3/23/07, Tromp Bert <Bert.Tromp@externel.be> 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 [mailto:csethil@gmail.com]
> *Sent:* Friday 23 March 2007 11:02
> *To:* axis-user@ws.apache.org
> *Subject:* Re: axis2: noise on Soap-messages
>
>
>   *104*
> > <?xml version='1.0' encoding='UTF-8'?>
> > <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
> > ">....<soapenv:Envelope>
> > *0*
> >
> > *</Message>*
> >
> > Is there something wrong with my configuration or what should I do to
> > make it go away?
> >
> Check this http://wso2.org/library/952
> Make sure to set the mentioned property to Boolean.FALSE...
>
> --
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
>
>  ------------------------------
>  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
> www.elia.be
> Vous pouvez découvrir la version française de ce disclaimer sur notre site
> internet www.elia.be
>  ------------------------------
>



-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

Mime
View raw message