0 Replies Latest reply: Aug 7, 2012 9:56 AM by 755596 RSS

    Help with Webservice XML Body

    755596
      Hi All,

      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.

      i dont know how to do it using eclipse axis.

      my config

      eclipse 3.4
      java 1.6
      axis runtime
      tomcat 6

      my VO structure

      LookVO
      name :string
      id :string

      i have method in webservice class as getGroupLookVO

      for which i get a return xml as

      <getGroupLookVOResponse>
      <getGroupLookVOReturn>
      <name>one</name>
      <id>1</id>
      </getGroupLookVOReturn>
      <getGroupLookVOReturn>
      <name>two</name>
      <id>2</id>
      </getGroupLookVOReturn>
      <getGroupLookVOReturn>
      <name>three</name>
      <id>3</id>
      </getGroupLookVOReturn>
      </getGroupLookVOResponse>


      The xml structure I need is
      <getGroupLookVOResponse>
      <getGroupLookVOReturn>
      <LookVO>
      <name>one</name>
      <id>1</id>
      </LookVO>
      <LookVO>
      <name>two</name>
      <id>2</id>
      </LookVO>
      <LookVO>
      <name>three</name>
      <id>3</id>
      </LookVO>
      </getGroupLookVOReturn>
      </getGroupLookVOResponse>


      the method signature is

      public LookVO[] getGroupLookVO()

      I tried editing wsdl but as soon as i regenerate the client the wsdl gets rewritten. Also I am not good in WSDl.

      Can some please help me and point me in the correct direction