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:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:44 AM To: [EMAIL PROTECTED] 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 > >
