File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF/JAXB data binding problem" Watch "CXF/JAXB data binding problem" New topic
Author

CXF/JAXB data binding problem

Dobrovolschi Andrei
Greenhorn

Joined: Nov 07, 2008
Posts: 5
Hello,

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 ]
 
 
subject: CXF/JAXB data binding problem