camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <>
Subject [jira] Commented: (CAMEL-1074) .unmarshal(new JaxbDataFormat("")) returning JAXBElement
Date Thu, 13 Nov 2008 07:52:05 GMT


Willem Jiang commented on CAMEL-1074:

The JAXBElement is create by the ObjectFactory's "public JAXBElement<PersonType> createPerson(PersonType
value) " method.
You can get the PersonType instance by calling the JAXBElement's getValue() method.

If you just want to get the PersonType after the unmashalling, you just need to comment out
the JAXBElement createPerson method.
May be you can tell xjc don't create the JAXBElement by passing some arguments when you generate
the code from xsd.

> .unmarshal(new JaxbDataFormat("")) returning JAXBElement
> -------------------------------------------------------------------
>                 Key: CAMEL-1074
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jaxb
>    Affects Versions: 1.4.0
>         Environment: java 1.5
>            Reporter: tim mcnamara
>            Assignee: Willem Jiang
>         Attachments:
> using .unmarshal(new JaxbDataFormat("") is returning a JAXBElement instead
of the desired object that was generated by xjc.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message