This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use custome exceptions with axis2?  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

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 ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!