Announcement Announcement Module
Collapse
No announcement yet.
Spring, Axis and Gzip Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring, Axis and Gzip

    Hi folks,

    I need to enable gzip compression but I am unable to find out how to do this.
    From look around on the web, I can a set a custom property within the bean

    <code>
    <bean id="test" class="com.doc.MyJaxRpcPortProxyFactoryBean" singleton="true">
    <property name="serviceFactoryClass">
    <value>org.apache.axis.client.ServiceFactory</value>
    </property>
    <property name="wsdlDocumentUrl">
    <value>wsdl location ..</value>
    </property>
    <property name="namespaceUri">
    <value>..</value>
    </property>
    <property name="serviceName" value="..."/>
    <property name="serviceInterface">
    <value>..</value>
    </property>
    <property name="portName">
    <value>...</value>
    </property>
    <property name="customProperties">
    <props>
    <prop key="transport.http.acceptGzip">true</prop>
    <prop key="transport.http.gzipRequest">true</prop>
    </props>
    </property>

    </code>

    And this was taken from
    http://www.pocketsoap.com/weblog/2005/10/1565.html

    But i am unable to set the transport entry to be CommonsHTTPSender instead of the default HTTPSender, which does not have gzip compression enabled.
    Any ideas on how to do this or how we can set gzip up within spring with axis


    Regards
    Danny

  • #2
    Ok,

    Got it resolved..

    Comment

    Working...
    X