Hi Nasreen, You can use a data binding framework such as ADB to generate the code which will do the OMElement to user defined object mapping automatically. Then you are not working with OMElement. http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb
This is how you are doing it now. http://ws.apache.org/axis2/1_3/quickstartguide.html#clientaxiom If you are working with OMElement directly, then you can do something like this to convert OMElement to Object. OMElement gerServiceResponse = client.sendReceive(payload); Trial t = (Trial) org.apache.axis2.databinding.utils.BeanUtil.deserialize(Trial.class, gerServiceResponse, new DefaultObjectSupplier(), null); Hope this helps. Upul On 10/6/07, Nasreen Laghari <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I'm trying to get Object from webservice. > Is there any way to put Class name instead of method name in OMElement? > Or Does any 1 know how to get Object instead of text from webservice so > that I can access all the properties of object. > I tried making simple webservice and client. I made 2 java classes in > webservice name as "Trial" and "Student". > I have created object of Trial class in Student. On client-side i'm > calling method in which i have created object of Trial. > Please find the attached copy of webservice, both java files(inside the > webservice) and client file. > > Regards > Nasreen > > > ------------------------------ > Peek-a-boo FREE Tricks & Treats for You! Get > 'em!<http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
