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 dunnohow <ro...@ncs.com.sg> on 2008/02/27 08:35:34 UTC
How to grab Axis faultString?
Hi all,
I defined two log handlers
ConsumerOutHandler
ConsumerInHandler
Axis fault will be generated in the handler if there are soap exception.
My problem is how can i possibly pass back this fault string to my web
application?
--
View this message in context: http://www.nabble.com/How-to-grab-Axis-faultString--tp15707591p15707591.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to grab Axis faultString?
Posted by Martin Gainty <mg...@hotmail.com>.
Ronald-
AxisFault extends RemoteException
RemoteException has 3 methods which may be of interest
getMessage() returns a descriptive message of the Exception
getCause() returns the wrapped remote exception..this is the object which
your AxisFault class can be *re*-thrown
HTH
Martin-
----- Original Message -----
From: "dunnohow" <ro...@ncs.com.sg>
To: <ax...@ws.apache.org>
Sent: Thursday, February 28, 2008 8:06 PM
Subject: Re: How to grab Axis faultString?
>
> I am using axis 1.4
>
> Basically i am throwing an axis fault when invoking the web service call
in
> the stub.java
>
> how do i pass this fault string back to my main application?
>
> can i keep on throwing the exception?
> so that my main application which is the strutaction will then catch it?
>
>
> Nunny wrote:
> >
> > Hi,
> > are you using Axis 2 ? Can you please clarify your scenario bit more
?
> >
> > On Wed, Feb 27, 2008 at 1:05 PM, dunnohow <ro...@ncs.com.sg> wrote:
> >>
> >> Hi all,
> >>
> >> I defined two log handlers
> >>
> >> ConsumerOutHandler
> >> ConsumerInHandler
> >>
> >> Axis fault will be generated in the handler if there are soap
exception.
> >> My problem is how can i possibly pass back this fault string to my web
> >> application?
> >>
> >
> > thanks,
> > /nandana
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/How-to-grab-Axis-faultString--tp15707591p15749910.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to grab Axis faultString?
Posted by dunnohow <ro...@ncs.com.sg>.
I am using axis 1.4
Basically i am throwing an axis fault when invoking the web service call in
the stub.java
how do i pass this fault string back to my main application?
can i keep on throwing the exception?
so that my main application which is the strutaction will then catch it?
Nunny wrote:
>
> Hi,
> are you using Axis 2 ? Can you please clarify your scenario bit more ?
>
> On Wed, Feb 27, 2008 at 1:05 PM, dunnohow <ro...@ncs.com.sg> wrote:
>>
>> Hi all,
>>
>> I defined two log handlers
>>
>> ConsumerOutHandler
>> ConsumerInHandler
>>
>> Axis fault will be generated in the handler if there are soap exception.
>> My problem is how can i possibly pass back this fault string to my web
>> application?
>>
>
> thanks,
> /nandana
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/How-to-grab-Axis-faultString--tp15707591p15749910.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to grab Axis faultString?
Posted by Nandana Mihindukulasooriya <na...@gmail.com>.
Hi,
are you using Axis 2 ? Can you please clarify your scenario bit more ?
On Wed, Feb 27, 2008 at 1:05 PM, dunnohow <ro...@ncs.com.sg> wrote:
>
> Hi all,
>
> I defined two log handlers
>
> ConsumerOutHandler
> ConsumerInHandler
>
> Axis fault will be generated in the handler if there are soap exception.
> My problem is how can i possibly pass back this fault string to my web
> application?
>
thanks,
/nandana
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org