I want to have javabean as a return type and parameter type of my web service method instead of primitive types.
Can any one tell me how that could be acheived and what are the things that I need to do for that?
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