Hello Christopher,

You can code a custom handler for http transport. It is not necessary
that it subclasses HTTPSender as long as it implements Handler.

You can configure the implementation class for each transport in a
file called "client-config.wsdd" that you should drop in your
classpath (in the root folder).

Note that other implementations of Http Transport are availables like :
- org.apache.axis.transport.http.CommonsHTTPSender : relies on Jakarta
Commons Http Client, supports http keep-alive, bundled in Axis
- com.osmoticweb.soapcompression.CompressionHTTPSender : supports http
compression (deflate / gzip),
http://www.osmoticweb.com/axis-soap-compression.htm

Sample of client-config.wsdd:
<?xml version="1.0" encoding="UTF-8"?>
<deployment name="defaultClientConfig"
            xmlns="http://xml.apache.org/axis/wsdd/";
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   <globalConfiguration>
     <parameter name="disablePrettyXML" value="true"/>
   </globalConfiguration>

   <transport name="http" pivot="java:com.mycompany.axis.MyEnhancedHTTPSender"/>
   <transport name="local"
pivot="java:org.apache.axis.transport.local.LocalSender"/>
   <transport name="java"
pivot="java:org.apache.axis.transport.java.JavaSender"/>
</deployment>

Hope this helps,

Cyrille


--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 10/19/05, Christopher S. Johnson <[EMAIL PROTECTED]> wrote:
> All -
>
> Is it possible to override the current HTTPSender class just by extending
> the current HTTPSender class and overriding it's methods?
>
> Any help would be great.
>
> Thanks
>

Reply via email to