Re: Pass in a VO - user's defined object- and return an VO
Posted By:
Vinay_Sarwate
Posted On:
Sunday, August 29, 2004 10:35 PM
Off course you can paas & receive Custom Objects but we have to tell AXIS how to handler them by registering them in following way, assuming you know its qualified name defined in wsdd etc. -
QName qname = new QName("PersonDetail","Person");
call.registerTypeMapping(your_package.Person,qname, org.spache.axis.encoding.ser.BeanSerializerFactory.class, org.spache.axis.encoding.ser.BeanDeserializerFactory.class);
call.setReturnType(qname);
.....
Hope this helps.
Vinay