You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jose Miguel Selman <js...@bee.cl> on 2003/10/09 22:30:15 UTC

How to make a handler generate a response

Hi:
    I have a RPC style service which uses a handler chain to do some of the
validations, etc. If anything goes wrong while executing any of the handlers
I rather generate a custom error (XML Document) instead of throwing an Axis
Fault. How can I do that?

Thanks,

Jose M Selman


Re: How to make a handler generate a response

Posted by Jose Miguel Selman <js...@bee.cl>.
I know that I can set the Response Message in the onFault() method of the
handler, but I don't wanna go through all the low level SOAP details to do
so.

My service is a method that returns a String (XML) and receives a String
(XML) as a parameter, so in every situation I must reply with an XML
document indicating the error, not the one generated when a fault ocurrs...

Any Suggestions will be apreciatted.

Jose M Selman


----- Original Message ----- 
From: "Jose Miguel Selman" <js...@bee.cl>
To: <ax...@ws.apache.org>
Sent: Thursday, October 09, 2003 4:30 PM
Subject: How to make a handler generate a response


> Hi:
>     I have a RPC style service which uses a handler chain to do some of
the
> validations, etc. If anything goes wrong while executing any of the
handlers
> I rather generate a custom error (XML Document) instead of throwing an
Axis
> Fault. How can I do that?
>
> Thanks,
>
> Jose M Selman
>
>