File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to use custome exceptions with axis2? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to use custome exceptions with axis2?" Watch "How to use custome exceptions with axis2?" New topic
Author

How to use custome exceptions with axis2?

emengy bh
Greenhorn

Joined: Feb 11, 2010
Posts: 3

Hi,
I'm using axis2 and trying to add custome exception to my service but the client get only axisFault exception.

I generated wsdl from this service code:


And generated skeleton from the created wsdl. Inside the generated skeleton for my service I caught my myWebServicesException and throw axis2 generated class myWebServicesExceptionException0
public void myService( com.enigma.webservices.sdk.service.myService myService0 ) throws myWebServicesExceptionException0


After the exception is thrown from the skeleton it arrived to generated code myServiceMessageReceiverInOut.java


Here you can see it convert my exception to AxisFault object

In my client I never get to myWebServicesExceptionException0 only to AxisFault


Any idea why I can't get myWebServicesException ?

Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to use custome exceptions with axis2?
 
Similar Threads
org.apache.axis2.AxisFault: http
Web Services using AXIS 2
org.apache.axis2.AxisFault: http
WebService Client - Unexpected SubElement Exception
Consuming a WS from another WS