It's not a secret anymore!
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
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!