title: Changing JAVA Axis Webservice Response XML Body
body: <p>I am trying to create webservice which returns a list of vo. i am able to return the list of VO. but i need the xml structure in a particular way.</p>
  
  <p>i dont know how to do it using eclipse axis.</p>
  
  <h2>My config</h2>
  
  <ul>
  <li>eclipse 3.4</li>
  <li>java 1.6</li>
  <li>axis runtime</li>
  <li>tomcat 6</li>
  </ul>
  
  <h2>my VO structure</h2>
  
  <p>LookVO</p>
  
  <p>name :string</p>
  
  <p>id :string</p>
  
  <p>i have method in webservice class as getGroupLookVO</p>
  
  <p>for which i get a return xml as</p>
  
  <pre><code>&lt;getGroupLookVOResponse&gt;
  &lt;getGroupLookVOReturn&gt;
  &lt;name&gt;one&lt;/name&gt;
  &lt;id&gt;1&lt;/id&gt;
  &lt;/getGroupLookVOReturn&gt;
  &lt;getGroupLookVOReturn&gt;
  &lt;name&gt;two&lt;/name&gt;
  &lt;id&gt;2&lt;/id&gt;
  &lt;/getGroupLookVOReturn&gt;
  &lt;getGroupLookVOReturn&gt;
  &lt;name&gt;three&lt;/name&gt;
  &lt;id&gt;3&lt;/id&gt;
  &lt;/getGroupLookVOReturn&gt;
  &lt;/getGroupLookVOResponse&gt;
  </code></pre>
  
  <p>The xml structure I need is </p>
  
  <pre><code>&lt;getGroupLookVOResponse&gt;
  &lt;getGroupLookVOReturn&gt;
  &lt;LookVO&gt;
  &lt;name&gt;one&lt;/name&gt;
  &lt;id&gt;1&lt;/id&gt;
  &lt;/LookVO&gt;
  &lt;LookVO&gt;
  &lt;name&gt;two&lt;/name&gt;
  &lt;id&gt;2&lt;/id&gt;
  &lt;/LookVO&gt;
  &lt;LookVO&gt;
  &lt;name&gt;three&lt;/name&gt;
  &lt;id&gt;3&lt;/id&gt;
  &lt;/LookVO&gt;
  &lt;/getGroupLookVOReturn&gt;
  &lt;/getGroupLookVOResponse&gt;
  </code></pre>
  
  <p>the method signature is</p>
  
  <pre><code>public LookVO[] getGroupLookVO()
  </code></pre>
  
  <p>I tried editing wsdl but as soon as i regenerate the client the wsdl gets rewritten. Also I am not good in WSDl.</p>
  
  <p>Can some please help me and point me in the correct direction</p>