Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
Description
See: http://www.nabble.com/Handle-exceptions-on-the-client-side-tf4273066.html
When getting a list of expected element names, it's not using the information from the @XmlRootElement to determine the element names. It's only using the WebFault information. Unfortunately, it's not really using that correctly either. If the @WebFault annotation doesn't put the proper namespace in, it will have issues with as well.
There is a semi-workaround:
If you completely specify the @WebFault annotation (including the targetNamespace), and then remove the @XmlRootElement annotation on the details, it would work. Or, make sure the data in the @WebFault matches the data in the @XmlRootElement. That's definitely not an ideal situation though. The element names may not be exactly what you want that way.