Hi Sepo,
You can find some sample handlers of JAX-RPC implementation
at "axis-1_1beta/samples/jaxrpc/hello" in your system.
I recommend you should refer ONLY source code (*.java) in this
directory. If you want a sample of HandlerChain definition,
you'd better see "axis-1_1beta/test/wsdl/jaxrpchandler/*.wsdd".
I mean that there're two types of "*.wsdd" for the workflow
definition. See below:
AXIS style definition:
------- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> -------
<requestFlow>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="scope" value="session"/>
<parameter name="className" value="samples.jaxrpc.hello.ClientHandler"/>
</handler>
</requestFlow>
<responseFlow>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="scope" value="session"/>
<parameter name="className" value="samples.jaxrpc.hello.ClientHandler"/>
</handler>
</responseFlow>
------- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> -------
JAX-RPC style definition:
------- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> -------
<handlerInfoChain>
<handlerInfo classname="test.wsdl.jaxrpchandler.ClientHandler">
<parameter name="param1" value="value1"/>
<parameter name="param4" value="value4"/>
<parameter name="param3" value="value3"/>
<header qname="ns11:Bob" xmlns:ns11="http://bob.com/stuff"/>
<header qname="ns12:Fred" xmlns:ns12="http://fred.com/stuff"/>
<header qname="ns12:Fred" xmlns:ns12="FredNS"/>
<header qname="ns11:Bob" xmlns:ns11="BobNS"/>
<header qname="Tom"/>
</handlerInfo>
<role soapActorName="Mary"/>
</handlerInfoChain>
------- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> ----- <CUT> -------
Regarding your question, I don't have sure answer to you. Sorry,
my interest is JAX-RPC implementation of handler.
Greetings from Tokyo/Japan (l.t. 10:20 PM :-)
Maybe, see you tomorrow ...
Toshiyuki Kimura <[EMAIL PROTECTED]>
R&D Headquaters
NTT DATA Corporation
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 5:57 PM
To: [EMAIL PROTECTED]
Subject: AW: Stopping the process of invocation by a Handler
Hi toshi,
thanks for that detailed answer. If I understood you right it is like this:
if I want to stop the chain and return with an error message to the client,
this is not possible with the axis-implementation?! So probably I will just
set a session-parameter in my handler, that I have to look for in called
methods. Thats suboptimal, but I do not have to much time :-(
And if I want to use that JAX-rpc, how do I do? All I do at the moment is,
just deploying the handler in the wsdd, but without a hint to axis-impl.
Where would I have to define to use jax-rpc? inside the java-code of the
handler?
And waht about my problem with the throwing of axis-faults. Even with try
catch everywhere on the client side, the stacktrace is printed if the
axis-fault is thrown by a handler. is it normal?
thanks in advance and Greetings from Hamburg/Germany
Seppo
-----Urspr・gliche Nachricht-----
Von: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. Dezember 2002 05:01
An: [EMAIL PROTECTED]
Betreff: Re: Stopping the process of invocation by a Handler
Hello Sebastian,
> how can stop the process of invocation with the help of a handler?
As you may know, AXIS has two implementations of "handler"; AXIS and
JAX-RPC. The easiest way what you want to do is JAX-RPC imp., I think.
Because the JAX-RPC ver 1.0 specifies the sequence of HandlerChain
(includes stopping the HandlerChain and the target service endpoint).
But, please note that the current version of AXIS (1.1 Beta) has a bug
related the way of using above. I've already posted it to Bugzilla (the
Apache bug database).
You can refer the detail of the bug at the following site:
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15478>
I hope this helps you.
Best Regards,
Toshiyuki Kimura <[EMAIL PROTECTED]>
R&D Headquaters
NTT DATA Corporation