2 Replies Latest reply on Oct 14, 2016 11:02 PM by igarashitm

    How to enable gzip compression on a switchyard gateway.

    ab2

      Hi!

      I have an external soap service that supports gzip compression. I want to enable gzip compression on switchyard gateway for this service. I tried to add cxf GZIPInInerceptor, but it did'nt work.

        <sca:reference name="AnticorruptionReference" multiplicity="0..1"
        promote="AnticorruptionProxy/AnticorruptionProxyService">
        <sca:interface.wsdl interface="META-INF/wsdl/anticorruption/anticorruption.wsdl#wsdl.porttype(AnticorruptionPT)"/>
        <soap:binding.soap name="soap">
        <soap:wsdl>META-INF/wsdl/anticorruption/anticorruption-soap.wsdl</soap:wsdl>
        <soap:endpointAddress>${anticorruption.service.address.runtime}</soap:endpointAddress>
        <soap:timeout>120000</soap:timeout>
        <soap:inInterceptors>
        <soap:interceptor class="org.apache.cxf.transport.common.gzip.GZIPInInterceptor"/>
        </soap:inInterceptors>
        </soap:binding.soap>
        </sca:reference>