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 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
Author

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.

problem:

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
Greenhorn

Joined: Jan 24, 2010
Posts: 11
Hi,

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

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service exception handling