You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Pugalia, Jai P (JP)" <jp...@avaya.com> on 2008/09/09 16:55:03 UTC

return type for a web service

Hi,
 
I have a web service method which is defined as below:
public FieldArray getFieldInfo() throws Throwable;

When this method is invoked, the SOAP response generated is:

<getLicenseInfoResponse>
  <return type="abc.xyz.FieldArray">
    <fields type="abc.xyz.Field">
      <dataType>Integer</dataType>
      <name>Maximum</name>
      <value>46</value>
    </fields>
  </return>
<getLicenseInfoResponse>

As the client is processing the SOAP response directly, we would like
the "return" tag to be called "fieldArray". 

<getLicenseInfoResponse>
  <fieldArray type="abc.xyz.FieldArray">
    <fields type="abc.xyz.Field">
      <dataType>Integer</dataType>
      <name>Maximum</name>
      <value>46</value>
    </fields>
  </fieldArray>
<getLicenseInfoResponse>

Is this doable with Axis2? Currently I am using Axis2-1.3

Thanks,
JP