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 Adrián Cuartero <ad...@yahoo.es> on 2008/03/24 20:47:32 UTC
Capture custom exception
Hi all
I keep trying throwing a custom exception and i've read there's a problem capturing this exception in the client side.
Anyone knows how to capture this custom exceptions?
Thanks
______________________________________________
Enviado desde Correo Yahoo!
Más formas de estar en contacto. http://es.docs.yahoo.com/mail/overview/index.html
Re: Capture custom exception
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
You can use new AxisFault.makeFault(customException) on the server side
and retrieve your custom fault with axisFault.getCause()
Michele
On 24 Mar 2008, at 19:47, Adrián Cuartero wrote:
> Hi all
>
> I keep trying throwing a custom exception and i've read there's a
> problem capturing this exception in the client side.
>
> Anyone knows how to capture this custom exceptions?
>
> Thanks
>
>
> Enviado desde Correo Yahoo!
> Disfruta de una bandeja de entrada más inteligente..
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Capture custom exception
Posted by Mauro Molinari <ma...@cardinis.com>.
Adrián Cuartero ha scritto:
> Hi all
>
> I keep trying throwing a custom exception and i've read there's a
> problem capturing this exception in the client side.
>
> Anyone knows how to capture this custom exceptions?
>
> Thanks
If you are using code-first approach and generating the WSDL with
Java2WSDL, there are some issues with Axis2 1.3 and custom exceptions.
Clients will always receive an AxisFault, instead of your custom
exception. Moreover, the generated WSDL is not valid.
You may have a look at:
https://issues.apache.org/jira/browse/AXIS2-3239
https://issues.apache.org/jira/browse/AXIS2-3301
--
Mauro Molinari
Software Developer
mauro.molinari@cardinis.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: Capture custom exception
Posted by D....@delagelanden.com.
Hi,
Just define a custom exception as a 'sub' of a fault . You should be able to catch the exception when invoking your stub
Regards
dirk
-----Original Message-----
From: Adrián Cuartero [mailto:adriancuartero@yahoo.es]
Sent: maandag 24 maart 2008 20:48
To: axis-user@ws.apache.org
Subject: Capture custom exception
Hi all
I keep trying throwing a custom exception and i've read there's a problem capturing this exception in the client side.
Anyone knows how to capture this custom exceptions?
Thanks
________________________________
Enviado desde Correo Yahoo!
Disfruta de una bandeja de entrada más inteligente. <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52431/*http:/es.docs.yahoo.com/mail/overview/index.html> .
================================================
The information transmitted via this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.