You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Alireza Taherkordi <Ta...@dpi2.dpi.net.ir> on 2003/09/16 23:53:22 UTC

Unwrapping AxisFaults - urgent

Hi,

anyone knows how to unwrap AxisFaults ?

I have a SecurityException thrown on server side. This is wrapped into an
AxisFault and sent to the client, which expects a SecurityException, not 
an AxisFault.

Is there a utility like AxisFault.makeFault(Exception), but working in 
the opposite way ?

I asked such a question in Axis-user but I didn't
get any helpful reponse.
I'd greatly appreciate any help,

Alireza


Re: Unwrapping AxisFaults - urgent

Posted by Dimuthu Leelarathne <mu...@vijayaba.cse.mrt.ac.lk>.
Hi Alireza,

> Is there a utility like AxisFault.makeFault(Exception), but working in
> the opposite way ?

I don't know any easy way (such as you ask in the question), but I can show
you a hard way.

The SecurityException is in the "detail" part of the response message. So
the SecurityException will be stored as an array of Elements in the
AxisFault. You can get this array of Element from AxisFault and recreate the
SecurityException at the client side.

Dimuthu.

----- Original Message -----
From: "Alireza Taherkordi" <Ta...@dpi2.dpi.net.ir>
To: <ax...@ws.apache.org>
Sent: Wednesday, September 17, 2003 3:53 AM
Subject: Unwrapping AxisFaults - urgent


> Hi,
>
> anyone knows how to unwrap AxisFaults ?
>
> I have a SecurityException thrown on server side. This is wrapped into an
> AxisFault and sent to the client, which expects a SecurityException, not
> an AxisFault.
>
> Is there a utility like AxisFault.makeFault(Exception), but working in
> the opposite way ?
>
> I asked such a question in Axis-user but I didn't
> get any helpful reponse.
> I'd greatly appreciate any help,
>
> Alireza
>