Hi

That worked thanks for the help.

cheers, Håkon

2009/8/25 Andreas Veithen <[email protected]>

> Håkon,
>
> Can you try to add multipart/related to the list of compressableMimeTypes?
>
> Andreas
>
> 2009/8/25 Håkon Sagehaug <[email protected]>:
> > Hi Andreas,
> >
> > Well the problem I guess is that the response from the service is not
> > gzipped. I run the request/response through tcpmon and the request is
> > gzipped but not the response. In tomcat service.xml I've got this
> >
> >
> >  <Connector port="8080" maxHttpHeaderSize="8192"
> >             maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> >             enableLookups="false" redirectPort="8443" acceptCount="100"
> >             connectionTimeout="20000" disableUploadTimeout="true"
> >             compression="on"
> >       compressionMinSize="2048"
> >       noCompressionUserAgents="gozilla, traviata"
> >       compressableMimeType="text/html,text/xml"/>
> >
> > The client has these option set to true
> >
> > org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST
> > org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_RESPONSE
> > org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP
> >
> > and on the service I've got this
> >
> > MessageContext inMessageContext =
> MessageContext.getCurrentMessageContext();
> >
> > // Obtain the operation context from the request message context
> > OperationContext operationContext = inMessageContext
> >                 .getOperationContext();
> >
> > // Obtain the response (outgoing) message context from the operation
> context
> > MessageContext outMessageContext;
> > outMessageContext =
> >
> operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
> >
> >
> outMessageContext.setProperty(HTTPConstants.MC_GZIP_RESPONSE,Boolean.TRUE);
> > outMessageContext.setProperty(HTTPConstants.MC_ACCEPT_GZIP,Boolean.TRUE);
> >
> > I've got the same configuration for a service that does not have mtom
> > enabled this works fine, but not in the service enabled. If I remove the
> > parameter
> >
> > <parameter name="enableMTOM" locked="false">true</parameter>
> >
> > from service.xml the response is gzipped.
> >
> > cheers, Håkon
> >
> > 2009/8/24 Andreas Veithen <[email protected]>
> >>
> >> Håkon,
> >>
> >> Could you please be a bit more precise about the problem you are
> >> encountering?
> >>
> >> Andreas
> >>
> >> 2009/8/21 Håkon Sagehaug <[email protected]>:
> >> > Hi all,
> >> >
> >> > I wanted to know if it's possible to have both gzip compressed soap
> >> > response
> >> > that "contains" mtom, I got gzip response working on a non-mtom
> service,
> >> > but
> >> > not when mtom was enabled.
> >> >
> >> > cheers, Håkon
> >> >
> >> > --
> >> > Håkon Sagehaug, Scientific Programmer
> >> > Parallab, Bergen Center for Computational Science (BCCS)
> >> > UNIFOB AS (University of Bergen Research Company)
> >> >
> >
> >
> >
> > --
> > Håkon Sagehaug, Scientific Programmer
> > Parallab, Bergen Center for Computational Science (BCCS)
> > UNIFOB AS (University of Bergen Research Company)
> >
>



-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Reply via email to