views:

13

answers:

0

I need to create a web service using Apache Axis2. I have a complex type XML response message that needs to be sent back to the client but I'm not sure how the client will be able to read the response.

Sample XML response for client:

<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type='text/xsl' href='./validation.xsl'?>
<document>
  <info>
    <data name="id" value="123"/>
    <data name="acct" value="12312312"/>
    <data name="name" value="Mark"/>
    <data name="date" value="20101005"/>
  </info>
  <section>
     <item id="1">Some normal text here
     </item>
  </section>
  <section>
    <item id="2">Some normal text here
     </item>
  </section>
</document>
  1. Would it be better to use AXIOM or ADB for implementing the service?

  2. Is it possible to give clients the WSDL file so that they can understand the XML structure above from response? I mean will the clients be able to process responses from my webservice if I only provide them with the WSDL file?

Thank you.