2 Replies Latest reply on Apr 1, 2008 10:34 AM by Heiko Braun


    Darran Lofthouse Master

      I am just trying to find out some further information on the level of support of XmlSeeAlso for.

      This annotation was added to JAXB 2.1 so on a super type the sub classes can be identified and used by the JAXB context.

      The JAX-WS 2.1 specification allows this annotation to be added to the service endpoint interface.

      We have JAXB 2.1 but not JAX-WS 2.1 so I can add the annotation to a type known to JAXB but not to the SEI.

      The scenario I have requires this annotation to be added when using wsconsume. One of the return types being returned from my SEI wraps an Object as in the WSDL it is defined as wrapping an xsd:anyType I need the object instance assigned to this to be marshaled correctly.

      The only way that I have found to get round this is to extend the object that is returned from the method an annotate that with XmlSeeAlso and return an instance of this instead.

      Do we have any other support for XmlSeeAlso?

      Adding it manually to the SEI did not achieve anything?
      Is there any way to get wsconsume to add it to the generated classes so I don't need this workaround?