users@jax-rpc.java.net

How does HandleFault get invoked in Handler.

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

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