List<Class<?>> partClasses = Arrays.asList(new Class<?>[] {List.class});
String className = requestClass.getName();
className = className.substring(0, className.lastIndexOf(".") + 1);
WrapperHelper wh = WrapperHelper.createWrapperHelper(requestClass,
partNames, elTypeNames, partClasses);
List<Object> paraList = new ArrayList<Object>();
List<String> valueList = new ArrayList<String>();
valueList.add("str1");
valueList.add("str2");
valueList.add("str3");
paraList.add(valueList);
Object requestObj = wh.createWrapperObject(paraList);
// Create response wrapper Object
partNames = Arrays.asList(new String[] {"return"});
elTypeNames = Arrays.asList(new String[] {"list"});
partClasses = Arrays.asList(new Class<?>[] {List.class});
className = responseClass.getName();
className = className.substring(0, className.lastIndexOf(".") + 1);
wh = WrapperHelper.createWrapperHelper(responseClass,
partNames, elTypeNames, partClasses);
List<Object> resPara = new ArrayList<Object>();
List<Integer> intValueList = new ArrayList<Integer>();
intValueList.add(1);
intValueList.add(2);
intValueList.add(3);
resPara.add(intValueList);
Object responseObj = wh.createWrapperObject(resPara);
JAXBContext jaxbContext = JAXBContext.newInstance(requestClass, responseClass);
java.io.ByteArrayOutputStream bout = new java.io.ByteArrayOutputStream();
Marshaller marshaller = jaxbContext.createMarshaller();