This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Services and the fly likes web service exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service exception handling" Watch "web service exception handling" New topic

web service exception handling

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
hi ,

i declare 2 exception for my web service method, exception 'A' and exception 'B'.

web service method:
public void getClaim() throws B

exception definition:
public class B extends A.

public class A extends Exception.


when i generate wsdl file ->generate java class based on wsdl file (the class B extends exception instead of A, and also in the wsdl file class A is not there)

what i want is exception B should extend exception A instead of Exception class, how can i fix it?

thank you

sarbjeet sidhu

Joined: Jan 24, 2010
Posts: 11

Please provide the schema and wsdl file from which you are trying to generate java classes.

I agree. Here's the link:
subject: web service exception handling
It's not a secret anymore!