users@jax-rpc.java.net

RE: How does HandleFault get invoked in Handler.

From: Purbhoo, Hansika <PurbhooH_at_scmb.co.za>
Date: Thu, 18 Dec 2003 12:50:48 +0200

Thanks Kevin......that works fine
(I also checked and its also well documented in the JAX-RPC specification )

-----Original Message-----
From: Kevin Jones [mailto:kevinj_at_develop.com]
Sent: 18 December 2003 12:45
To: users_at_jax-rpc.dev.java.net
Subject: RE: How does HandleFault get invoked in Handler.


You need to throw a SOAPFaultException, then you will see the
handleFault being called instead of handleResponse,

Kevin Jones
http://kevinj.develop.com

> -----Original Message-----
> From: Purbhoo, Hansika [mailto:PurbhooH_at_scmb.co.za]
> Sent: 18 December 2003 05:46
> To: users_at_jax-rpc.dev.java.net
> Subject: How does HandleFault get invoked in Handler.
>
>
> Hi
> Does anyone know how to invoke handleFault(MessageContxt ctx)
> method in a Handler class ? The printlns for the other
> methods get printed out, so I know that the Handler class is
> being called and is correctly configured. I have tried
> thowing a JaxRPCException from my method call in the
> Implementation class, but this simply fails.
>
>
> My Handler class is as follows:
> -----------------
> public class ServerHandler extends GenericHandler {
> public ServerHandler() {
> }
>
> public boolean handleResponse(MessageContext context) {
> System.out.println("In the response method:");
> return true;
> }
>
> public void init(HandlerInfo hi) {
> System.out.println("In the init method::");
> }
>
> public boolean handleRequest(MessageContext context) {
> System.out.println("In the Handle request method:");
> return true;
> }
>
> public boolean handleFault(MessageContext context) {
> System.out.println("In the Handle fault method:");
> //Want to do stuff like create a Soap Fault
> return true;
> }
>
>
> public void destroy() { }
>
> public QName[] getHeaders() { return null; }
>
>
> }
> -----------------------
>
> Any Help would be much appreciated
> Thanks
>
>
>
>
>
>
> ______________________________________________________________
> ____________________________________________________________________
>
> For information about the Standard Bank group visit our web
> site <www.standardbank.co.za>
> ______________________________________________________________
> ____________________________________________________________________
>
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relating to the
> official business of Standard Bank Group Limited is
> proprietary to the group.
> It is confidential, legally privileged and protected by law.
> Standard Bank does not own and endorse any other content.
> Views and opinions are those of the sender unless clearly
> stated as being that of the group.
> The person addressed in the e-mail is the sole authorised
> recipient. Please notify the sender immediately if it has
> unintentionally reached you and do not read,
> disclose or use the content in any way.
> Standard Bank can not assure that the integrity of this
> communication has been maintained nor that it is free of
> errors, virus, interception or interference.
> ______________________________________________________________
> _____________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net

__________________________________________________________________________________________________________________________________

For information about the Standard Bank group visit our web site <www.standardbank.co.za>
__________________________________________________________________________________________________________________________________
        
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group.
It is confidential, legally privileged and protected by law.
Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group.
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read,
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
___________________________________________________________________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net