Which version of Camel do you use?
How do you use the JAXB Marschaller/Unmarschaller (explicitly or via the
FallbackTypeConverter)?
Could you share your code?

Best,
Christian

Sent from a mobile device
Am 13.04.2012 12:45 schrieb "atg roxx" <atgr...@gmail.com>:

> Hi Guys,
>
> I am facing a problem.
>
> I am using camel jaxb to marshall and unmarshall java objects which is
> working fine for me till now.
> But now I got a special case where I am not able to properly unmarshall an
> xml whose class have mulitple namespace (different for root element and sub
> elements).
>
> sample xml :
>
> Class corresponding to each <element> is having different namespace.
>
> I am using JaxbDataFormat for this unmarshalling and setting the partclass
> name to the root element.
>
> <GetProductPriceOffers>
>  <partner>
>            <Password>abc</Password>
>            <UserID>xyz</UserID>
>         </partner>
>
> <request>
>  <HotelDetails>
> <HotelAddress>
> <City />
> <Country>GB</Country>
> <PostalCode />
> <Region>GB</Region>
> </HotelAddress>
> <HotelChain>Sample Hotel Chain</HotelChain>
> <HotelCheckinDate>2011-08-19T04:55:02-04:00</HotelCheckinDate>
> <HotelCheckoutDate>2011-08-24T04:55:02-04:00</HotelCheckoutDate>
> <HotelName>Mariott</HotelName>
> <HotelRating>5</HotelRating>
> <NumberOfAdultTravelers>1</NumberOfAdultTravelers>
> <NumberOfInfantTravelers>0</NumberOfInfantTravelers>
> <NumberOfKidTravelers>0</NumberOfKidTravelers>
> <NumberOfRooms>1</NumberOfRooms>
> <NumberOfSeniorTravelers>0</NumberOfSeniorTravelers>
> <NumberOfYouthTravelers>2</NumberOfYouthTravelers>
> </HotelDetails>
>  </request>
> </GetProductPriceOffers>
>
>
>
> I am able to unmarshall it but when i check the object created, I found
> that the <request> and <partner> object are not set to values in the xml
> but are set to null.
>
>
> Could anyone let me know what can be the issue or how to resolve this .
>
>
> --cheers,
> atg roxx
>

Reply via email to