I have reported a similar issue a year ago.
https://issues.apache.org/jira/browse/AXIS2-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Is anyone trying to solve the JIRA?
Is it a tough one to fix or just lack of time and other priorities?

Regards
Pär Malmqvist






To: [email protected]
CC: [email protected]
Subject: axis2 - creating a customer exception
From: [email protected]
Date: Thu, 11 Dec 2008 09:49:30 -0700





I have created a custom exception and it is being throw by the web service.
The exception has two fields and getter and setter methods for those fields.
Those fields are being set by the service before it throws the customer
exception.  On the client side, the only exception I am able to catch
is  AxisFault exception. In that class, I cannot seem to find the
custom exception I threw, or the fields I set on the custom exception.




Background: 

I am creating the web service from POJO's and a services.xml file. The
WSDL is auto generated when I deploy the web service to axis2 inside of
Tomcat.  Therefore, I have no control over the content of the WSDL.


I am also using Axis2 to create the client. I am using the wsdl2java utility
the auto generates the Stub class from the WSDL.  I have googled this
issue and by all accounts it seems that catching an AxisFault exception
is what the client should do if using Axis2 to autogenerate the stubs from
the WSDL. But how do i access the custom exception I threw and access the
fields I set on the custom exception?   
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Reply via email to