Ok,
 
there are two ways to use the Clienthandler
 
First:
You can instantiate the HandlerClass and use
 

private ClientSessionHandler sessionHandler;

this.sessionHandler = new ClientSessionHandler();

Call rpc;

rpc.setClientHandlers(sessionHandler, sessionHandler);

 
Second:
You can use the clientConfig.wsdd to define the handlers to be used for different services (see example below) --> place it under /WEB-INF/
You have also set a JVM-Option in your Serversettings to tell axis where to find the clientConfig.wsdd:
 
-Daxis.ClientConfigFile=C:/projects/sources/GGG/WebContent/WEB-INF/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">

<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>

<transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>

<transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/>

<chain name="ZZZChain">

<handler name="SessionHandler" type="java:com.tsystems.....webservice.handler.SessionHandler"/>

<handler name="ClientIDHandler" type="java:com.tsystems.....webservice.handler.ClientIDHandler"/>

<handler name="EngpUserIDHandler" type="java:com.tsystems.epdm.pdmwebconnector.client.webservice.handler.EngpUserIDHandler"/>

</chain>

<service name="XXX_Service">

<requestFlow>

<handler type="ZZZChain"/>

</requestFlow>

<responseFlow>

<handler type="ZZZChain"/>

</responseFlow>

</service>

<service name="YYY_Service">

<requestFlow>

<handler type="ZZZChain"/>

</requestFlow>

<responseFlow>

<handler type="ZZZChain"/>

</responseFlow>

</service>

 
 
 
 


Von: Terance Dias [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 3. M�rz 2005 11:37
An: apache
Betreff: Handlers in wsad5.1.2

Hi,
     I'm using WSAD5.1.2. How do I make the client invoke the clientside handler?
I've tried including the handler class in the webservicesclient.xml file, but it works only when I use the TestClient.jsp. If I create my own client, the client side handler doesn't get called.
    Any help on how I can get it to work will be appreciated.
Terance. 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to