Take a look to "Java Types To XML" chapter of JAXB specification.
You can do it however you must annotate your method parameters and return types with
javax.xml.bind.annotation.* annotations properly
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122943#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...