How to configure transport to CommonsHttpSender through code for axis 1.4?

Hi All,

I have client-config.wsdd with transport name

<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>

Since to support GZip implementation to axis 1.4, I need to change the HttpSender to CommonsHttpSender.

I don't want to modify the client-config.wsdd and rebuild the axis1.4.jar file, since the axis 1.4 jar is using across the project, i can't do it.

So i want to configure the transport from my client to CommonsHttpSender.

Through my client code, how could i set the transport 'http' with value (or pivot) to CommonsHttpSender ?

Please give me a good suggession and reply me with examples.

This is my code

org.apache.axis.client.Call _call = super.createCall();

_call.setOperation(_operations[0]);

_call.setUseSOAPAction(true);

_call.setSOAPActionURI("XXXXXXX");

_call.setEncodingStyle(null);

_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);

_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);

_call.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);

_call.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);

It would be nice if i can set the transport through _call object. ( I dont know whether it is possible or not )

Thanks in advance

Nishad

Message was edited by:

Nishad

Message was edited by:

Nishad

[1567 byte] By [Nishada] at [2007-10-3 9:19:51]
# 1
I am also in trouble in using GZip in Axis.Please help us.Thanks in advance.
Jobina at 2007-7-15 4:33:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...