I have many webservices with operations throwing a common exception (eg., SomeException) across all the services
I tried to annotate the SomeException class using various approaches but failed to generate the client stubs with a common target namespace different from the targetnamespace of the webservice itself.
Used @XmlType(namespace="common.targetnamespace") in the SomeException class
In both the above approaches, the wsconsume generated a separate stub for SomeException class for each webservice in the same targetnamespace of the webservice and not on the specified common.targetnamespace.
My requirement is to generate a single SomeException client stub in the common.targetnamespace.
Pls let me know whether this is a bug or suggest some workarounds.
Hi did you come up with a solution for this?
I have the same requirement