Rajal,

there is a similar mechanism to server-config.wsdd on the client side, 
using a client-config.wsdd file.  Create a simple client-config.wsdd as 
below, putting a single handler into the <requestFlow> element. 
Obviously you can put it into the flow for a single service too:

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  <globalConfiguration>
   <parameter name="sendXsiTypes" value="true"/>
   <parameter name="sendMultiRefs" value="true"/>
   <parameter name="sendXMLDeclaration" value="true"/>
   <requestFlow>
      <handler type="java:org.edg.security.client.RoleHandler"/>
   </requestFlow>
  </globalConfiguration>
  <transport name="local" 
pivot="java:org.apache.axis.transport.local.LocalSender"/>
  <transport name="http" 
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
</deployment>


This example adds a single handler, org.edg.security.client.RoleHandler 
to the client.  In order to get Axis to pick up this handler, you need 
to specify its path in a system property 'axis.ClientConfigFile'

i.e. you run java -Daxis.ClientConfigFile=client-config.wsdd if it is in 
the same directory from which you run your client.

I hope this is what you are looking for.

cheers,

james.
-

Rajal Shah wrote:
> I have a situation where I need to track performance metrics for every SOAP call 
>that we make from the client. 
> 
> I was thinking of a way to use the handlers/chains on the client side, which can log 
>the metrics for me.. Is this possible? On the server side we can use the deploy.wsdd 
>to specify the flow and was hoping to do something similar on the client side.
> 
> --
> Rajal
> 
> 

Reply via email to