This content has been marked as final.
Show 6 replies
-
1. Re: Using custom exception inheritance
anil.saldhana Jun 7, 2005 3:43 PM (in response to dannox02)Why not? Give it a try!!!
-
2. Re: Using custom exception inheritance
dannox02 Jun 7, 2005 4:18 PM (in response to dannox02)"anil.saldhana@jboss.com" wrote:
Why not? Give it a try!!!
Well, I'm asking because I did try and it did not work. And I haven't been able to find a way to get it to work.
If the specifies that it throws a ParentException, but really throws a ChildException, the ChildException is not caught by the client.
My point is, that using wscompile to build the wsdl from the SEI does not include information in the wsdl about exception inheritance...
so I thought I'd ask if this was possible. -
3. Re: Using custom exception inheritance
dannox02 Jun 8, 2005 7:44 PM (in response to dannox02)Anybody know about this?
Thanks, -
4. Re: Using custom exception inheritance
thomas.diesler Jun 15, 2005 4:46 AM (in response to dannox02)This has been assigned to
http://jira.jboss.com/jira/browse/JBWS-251 -
5. Re: Using custom exception inheritance
dode Nov 5, 2007 3:12 PM (in response to dannox02)Sorry for digging up this old thread, but I have the same problem and can't seem to solve it.
I have annotated the exception base class thrown by my WebMethods with @XmlSeeAlso to refer to the subtype exceptions, but it doesn't seem to have any effect and still in the client a SOAPFaultException is thrown instead of the user exception.
I am running JBoss AS 4.0.5 with JBossWS 2.0.1.GA.
What am I missing?
Torsten -
6. Re: Using custom exception inheritance
ropalka Nov 6, 2007 3:32 AM (in response to dannox02)"dode" wrote:
What am I missing?
Torsten
You have to use javax.xml.bind.annotation.* annotations. Take a look to Java Types To XML chapter of JAXB 2.1 specification.
I suggest you to write your wsdl first with exceptions inheritance inside and use wsprovide to generate the java artifacts for you. Then you can study them to get familiar how to do it.
Richard