axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Mahoney (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2686) setting MC_GZIP_REQUEST to true with Jibx databinding framework
Date Mon, 16 Jul 2007 10:32:04 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512904
] 

Paul Mahoney commented on AXIS2-2686:
-------------------------------------

Have found the cause. On tracing the code, step by step, I finally found this method in 

  org.apache.axis2.transport.http.SOAPOverHTTPSender

    public void writeRequest(OutputStream out) throws IOException {
            Object gzip = msgCtxt.getOptions().getProperty(HTTPConstants.MC_GZIP_REQUEST);
            if(gzip != null && JavaUtils.isTrueExplicitly(gzip) && chunked)
{
                out = new GZIPOutputStream(out);
            }
            // STIFF DELETED FOR BREVITY
           .....
    }

Thus compression of the request will only occur if you also set HTTPConstants.CHUNKED.
This makes perfect sense as, due to compression, the sender will not know the final size of
the request. 
Unfortunately, due to another issue (now resolved) I was setting chunked to false....

Perhaps the javadoc for MC_GZIP_REQUESTcould be enhanced to point this out?


> setting MC_GZIP_REQUEST to true with Jibx databinding framework
> ---------------------------------------------------------------
>
>                 Key: AXIS2-2686
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2686
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>            Reporter: Paul Mahoney
>            Assignee: Dennis Sosnoski
>            Priority: Minor
>         Attachments: XmlSelectConnection.java
>
>
> If have set MC_GZIP_REQUEST to true, but on looking at the "httpclient.wire" logger I
find the contents have not been zipped.
> I'm using the jibx framework [org.apache.axis2.wsdl.WSDL2Java-d jibx].
> What have I forgotten, or is this a bug?
> Log snippet:
> DEBUG [httpclient.wire.header] | >> "POST /B2BGateway/service/XMLSelect HTTP/1.1[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "SOAPAction: "http://webservices.galileo.com/SubmitXml"[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "User-Agent: Axis2[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Accept-Encoding: gzip[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Content-Encoding: gzip[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Authorization: Basic UENDNTFMUDp0dmwyNTFscA==[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Host: ws.cendant.com[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Content-Length: 1228[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"^M
> DEBUG [httpclient.wire.header] | >> "[\r][\n]"^M
> DEBUG [httpclient.wire.content] | >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><SubmitXml
xmlns="http://webservices.galileo.com"><Profile>DynGalileoProd_Y6V</Profile><Request><AirAvailability_7><AirAvailMods><AirVPrefInd><AirVIncExcInd>I</AirVIncExcInd></AirVPrefInd><AirVPrefs><AirVAry><AirVInfo><AirV>BA</AirV></AirVInfo><AirVInfo><AirV>AA</AirV></AirVInfo></AirVAry></AirVPrefs><GenAvail><NumSeats>1</NumSeats><Class>Y</Class><StartDt>20071118</StartDt><StartPt>LHR</StartPt><EndPt>JFK</EndPt><TmWndInd>D</TmWndInd><StartPtInd>A</StartPtInd><EndPtInd>A</EndPtInd><WidenSearchWndInd>N</WidenSearchWndInd><MaxNumFlts>48</MaxNumFlts><IncNonStopDirectsInd>Y</IncNonStopDirectsInd><IncStopDirectsInd>Y</IncStopDirectsInd><IncSingleOnlineConxInd>N</IncSingleOnlineConxInd><IncDoubleOnlineConxInd>N</IncDoubleOnlineConxInd><IncTripleOnlineConxInd>N</IncTripleOnlineConxInd><IncSingleInterlineConxInd>N</IncSingleInterlineConxInd><IncDoubleInterlineConxInd>N</IncDoubleInterlineConxInd><IncTripleInterlineConxInd>N</IncTripleInterlineConxInd></GenAvail></AirAvailMods></AirAvailability_7></Request><Filter><_
/></Filter></SubmitXml></soapenv:Body></soapenv:Envelope>"^M

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message