Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-926

JAX-WS code first fault mapping is not writing proper element name on wire if detail has XmlRootElement

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: