Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service exception handling

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic