axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajal Shah" <rs...@Quinstreet.com>
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
activities.

--
Rajal


-----Original Message-----
From: Cun Yong Tan [mailto:cyongtan@hotmail.com]
Sent: Thursday, September 26, 2002 12:50 PM
To: axis-user@xml.apache.org
Subject: RE: Client Handlers



Add something similar to this:

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


>From: "Rajal Shah" <rshah@Quinstreet.com>
>Reply-To: axis-user@xml.apache.org
>To: <axis-user@xml.apache.org>
>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 
>detail.
>
>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.
>
>--
>Rajal
>
>
>-----Original Message-----
>From: James Casey [mailto:james.casey@cern.ch]
>Sent: Thursday, September 26, 2002 12:44 AM
>To: axis-user@xml.apache.org
>Subject: Re: Client Handlers
>
>
>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
> >
> >




Cun Yong Tan
cyongtan@hotmail.com


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Mime
View raw message