The moose likes Web Services and the fly likes CXF/JAXB data binding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF/JAXB data binding problem" Watch "CXF/JAXB data binding problem" New topic

CXF/JAXB data binding problem

Dobrovolschi Andrei

Joined: Nov 07, 2008
Posts: 5

I have a problem regarding the CXF data binding. I have a webservice deployed in JBOSS 4.2.3 using CXF. This webservice contains a series of methods that all use the same request and the same response classes, i have a generic example below:

The problem i have is that sometimes both the requestParameters and the responseMap contain other Collections(HashMap or ArrayList) that can in turn contain some other collections and so on. From what i observed JAXB only maps the initial Map, the one declared in the class, any collection contained within is not parsed, just returned as a XsElement. Is there any way to "convince" JAXB to parse all the way down the tree, sort of speak? Can i maybe customise the WSDL for each method, bearing in mind that it will be generated automatically? Is there another CXF data bind that would help me more, such as Aegis?

Any suggestions would be appreciated.
[ November 07, 2008: Message edited by: Dobrovolschi Andrei ]
I agree. Here's the link:
subject: CXF/JAXB data binding problem
It's not a secret anymore!