Mathias P.W Nilsson wrote:
Thank you Keith!

I managed to return some data from my service. How can I handle objects for
this. When my service return my Book object I get this OMElement

<ns:findBookResponse
xmlns:ns="http://ws.apache.org/axis2/samples/book/xsd/";>
  <return>
    <author>Dan Diephouse</author>
    <title>Using Axis2</title>
    <isbn>0123456789</isbn>
  </return>
</ns:findBookResponse>

Damn that's gotta be a great book ;-).

This is my book. How can I convert to Object?

Do you have a schema/wsdl written for the service? If so you can use wsdl2java to generate the code. If not you can either hand populate the object from Axiom or use something like JibX data binding to bring it into the Java object.

There are additional articles on this topic available on the Web ..

Sanjiva.
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to