-
1. Re: Name of generated exception class
jason.greene Mar 30, 2007 9:24 AM (in response to magnus.ahlander)Yes, the package name passed to wsconsume is an override, and is not really part of the standard. It's just their for ease of use.
You can change the name of the exception class by using
<jaxws:class name="MyNewException" node="..."/> to point to the wsdl:fault element.
You can also change the name of the fault bean by using a JAXB customization that points to the schema complex type:
<jaxb:class name="AuthorizationFaultBean" node="..."/>
-Jason -
2. Re: Name of generated exception class
magnus.ahlander Apr 3, 2007 5:40 AM (in response to magnus.ahlander)Thanks for the reply.
It seems like in the wsconsume task, the package name specified in the 'package' attribute takes precedence over any custom jaxws or jaxb bindings.
Wouldn't it be more appropriate to initially apply any custom bindings and then fall back to the value of the 'package' attribute only if no appropriate bindings are available?
Lp, Magnus