axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajal Shah" <>
Subject RE: Client Handlers
Date Thu, 26 Sep 2002 20:00:14 GMT
Well, I am looking to invoke the same **instance** of the handler object that was associated
with the request flow. What you suggest creates a new handler object at request and at response


-----Original Message-----
From: Cun Yong Tan []
Sent: Thursday, September 26, 2002 12:50 PM
Subject: RE: Client Handlers

Add something similar to this:

  <handler type="java:com....." />

>From: "Rajal Shah" <>
>To: <>
>Subject: RE: Client Handlers
>Date: Thu, 26 Sep 2002 11:52:38 -0700
>This is great information. Thanks for taking the time out to explain it in 
>Add on question though.. I want the handler to be part of my request and 
>the response flows, such that the same handler object is associated with 
>both flows. I am trying to write a handler to calculate the time it takes 
>to complete a SOAP operation. The start time is stamped during the request 
>and I need the response to call the same object to stamp the response time 
>and calculate the delta time between the request and response. I tried 
>setting scope on the handler without much luck.
>-----Original Message-----
>From: James Casey []
>Sent: Thursday, September 26, 2002 12:44 AM
>Subject: Re: Client Handlers
>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=""
>   <globalConfiguration>
>    <parameter name="sendXsiTypes" value="true"/>
>    <parameter name="sendMultiRefs" value="true"/>
>    <parameter name="sendXMLDeclaration" value="true"/>
>    <requestFlow>
>       <handler type=""/>
>    </requestFlow>
>   </globalConfiguration>
>   <transport name="local"
>   <transport name="http"
>This example adds a single handler,
>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.
>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
> >
> >

Cun Yong Tan

Send and receive Hotmail on your mobile device:

View raw message