[ 
https://issues.apache.org/jira/browse/AXIS-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nitin Chawla updated AXIS-2838:
-------------------------------

    Description: 
I have used Axis 1.4 to create a service and WSDL is as follows:

*********************************************************************************************************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions 
targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:intf="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:tns1="urn:BeanService" xmlns:tns2="http://y703ir01service.msp.csc"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->

 <wsdl:types>

  <schema elementFormDefault="qualified" targetNamespace="urn:BeanService" 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import 
namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

   <complexType name="y703ir01service_INPUT_INPUTDATAREC">

    <sequence>

     <element name="TI11I001" nillable="true" type="xsd:string"/>

     <element name="TI11I002" nillable="true" type="xsd:string"/>

     <element name="TI11I003" nillable="true" type="xsd:string"/>

     <element name="TI11I004" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_INPUT_UPDATEDATAREC">

    <sequence>

     <element name="TI11IO01" nillable="true" type="xsd:string"/>

     <element name="TI11IO02" nillable="true" type="xsd:string"/>

     <element name="TI11IO04" nillable="true" type="xsd:string"/>

     <element name="TI11IO05" nillable="true" type="xsd:string"/>

     <element name="TI11IO07" nillable="true" type="xsd:string"/>

     <element name="TI11IO08" nillable="true" type="xsd:string"/>

     <element name="TI11IO09" nillable="true" type="xsd:string"/>

     <element name="TI11IO10" nillable="true" type="xsd:string"/>

     <element name="TI11IO11" nillable="true" type="xsd:string"/>

     <element name="TI11IO12" nillable="true" type="xsd:string"/>

     <element name="TI11IO13" nillable="true" type="xsd:string"/>

     <element name="TI11IO14" nillable="true" type="xsd:string"/>

     <element name="TI11IO15" nillable="true" type="xsd:string"/>

     <element name="TI11IO16" nillable="true" type="xsd:string"/>

     <element name="TI11IO17" nillable="true" type="xsd:string"/>

     <element name="TI11IO18" nillable="true" type="xsd:string"/>

     <element name="TI11O001" nillable="true" type="xsd:string"/>

     <element name="TI11O002" nillable="true" type="xsd:string"/>

     <element name="TI11O003" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_INPUT">

    <sequence>

     <element name="BRANCH" nillable="true" type="xsd:string"/>

     <element name="COMMITFLAG" nillable="true" type="xsd:string"/>

     <element name="COMPANY" nillable="true" type="xsd:string"/>

     <element name="INPUTDATAREC" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC"/>

     <element name="LANGUAGE" nillable="true" type="xsd:string"/>

     <element name="OBJECTID" nillable="true" type="xsd:string"/>

     <element name="PASSWORD" nillable="true" type="xsd:string"/>

     <element name="UPDATEDATAREC" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC"/>

     <element name="USRPRF" nillable="true" type="xsd:string"/>

     <element name="VERBID" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR_REASON_FIELD">

    <sequence>

     <element name="ERRORFIELD" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR_REASON">

    <sequence>

     <element name="ERRORDESC" nillable="true" type="xsd:string"/>

     <element name="ERROREROR" nillable="true" type="xsd:string"/>

     <element name="FIELD" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR">

    <sequence>

     <element name="REASON" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_Y703IR01">

    <sequence>

     <element name="MOREIND" nillable="true" type="xsd:string"/>

     <element name="OCNT" nillable="true" type="xsd:string"/>

     <element name="OCOD" nillable="true" type="xsd:string"/>

     <element name="OMSG" nillable="true" type="xsd:string"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

     <element name="TI11IO01" nillable="true" type="xsd:string"/>

     <element name="TI11IO02" nillable="true" type="xsd:string"/>

     <element name="TI11IO03" nillable="true" type="xsd:string"/>

     <element name="TI11IO04" nillable="true" type="xsd:string"/>

     <element name="TI11IO05" nillable="true" type="xsd:string"/>

     <element name="TI11IO06" nillable="true" type="xsd:string"/>

     <element name="TI11IO07" nillable="true" type="xsd:string"/>

     <element name="TI11IO08" nillable="true" type="xsd:string"/>

     <element name="TI11IO09" nillable="true" type="xsd:string"/>

     <element name="TI11IO10" nillable="true" type="xsd:string"/>

     <element name="TI11IO11" nillable="true" type="xsd:string"/>

     <element name="TI11IO12" nillable="true" type="xsd:string"/>

     <element name="TI11IO13" nillable="true" type="xsd:string"/>

     <element name="TI11IO14" nillable="true" type="xsd:string"/>

     <element name="TI11IO15" nillable="true" type="xsd:string"/>

     <element name="TI11IO16" nillable="true" type="xsd:string"/>

     <element name="TI11IO17" nillable="true" type="xsd:string"/>

     <element name="TI11IO18" nillable="true" type="xsd:string"/>

     <element name="TI11O001" nillable="true" type="xsd:string"/>

     <element name="TI11O002" nillable="true" type="xsd:string"/>

     <element name="TI11O003" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT">

    <sequence>

     <element name="ERROR" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

     <element name="y703IR01" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01"/>

    </sequence>

   </complexType>

  </schema>

  <schema elementFormDefault="qualified" 
targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import namespace="urn:BeanService"/>

   <complexType name="ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_INPUT_INPUTDATAREC"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_INPUT_UPDATEDATAREC"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR_REASON"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_Y703IR01"/>

    </sequence>

   </complexType>

   <element name="serviceReturn" type="tns1:y703ir01service_OUTPUT"/>

  </schema>

  <schema elementFormDefault="qualified" 
targetNamespace="http://y703ir01service.msp.csc"; 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import namespace="urn:BeanService"/>

   <import 
namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

   <element name="in0" type="tns1:y703ir01service_INPUT"/>

  </schema>

 </wsdl:types>

 
   <wsdl:message name="serviceResponse">

 
      <wsdl:part element="impl:serviceReturn" name="serviceReturn"/>

 
   </wsdl:message>

 
   <wsdl:message name="serviceRequest">

 
      <wsdl:part element="tns2:in0" name="in0"/>

 
   </wsdl:message>

 
   <wsdl:portType name="y703ir01serviceservice">

 
      <wsdl:operation name="service" parameterOrder="in0">

 
         <wsdl:input message="impl:serviceRequest" name="serviceRequest"/>

 
         <wsdl:output message="impl:serviceResponse" name="serviceResponse"/>

 
      </wsdl:operation>

 
   </wsdl:portType>

 
   <wsdl:binding name="y703ir01serviceserviceSoapBinding" 
type="impl:y703ir01serviceservice">

 
      <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>

 
      <wsdl:operation name="service">

 
         <wsdlsoap:operation soapAction=""/>

 
         <wsdl:input name="serviceRequest">

 
            <wsdlsoap:body use="literal"/>

 
         </wsdl:input>

 
         <wsdl:output name="serviceResponse">

 
            <wsdlsoap:body use="literal"/>

 
         </wsdl:output>

 
      </wsdl:operation>

 
   </wsdl:binding>

 
   <wsdl:service name="y703ir01serviceserviceService">

 
      <wsdl:port binding="impl:y703ir01serviceserviceSoapBinding" 
name="y703ir01serviceservice">

 
         <wsdlsoap:address 
location="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

 
      </wsdl:port>

 
   </wsdl:service>
</wsdl:definitions>

*********************************************************************************************************************************************************************************

The WSDD File is:

*********************************************************************************************************************************************************************************
<service name="y703ir01serviceservice" provider="java:RPC" style="document" 
use="literal">
  <parameter name="allowedMethods" value="service"/>
  <parameter name="className" 
value="csc.msp.y703ir01service.y703ir01serviceservice"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$INPUTDATAREC" 
qname="ns1:y703ir01service_INPUT_INPUTDATAREC" xmlns:ns1="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$UPDATEDATAREC" 
qname="ns2:y703ir01service_INPUT_UPDATEDATAREC" xmlns:ns2="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT" 
qname="ns3:y703ir01service_INPUT" xmlns:ns3="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.NewDataSet" 
qname="ns4:y703ir01service_NewDataSet" xmlns:ns4="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.NewDataSet" 
qname="ns5:y703ir01service_NewDataSet" xmlns:ns5="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON$FIELD" 
qname="ns6:y703ir01service_OUTPUT_ERROR_REASON_FIELD" 
xmlns:ns6="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON" 
qname="ns7:y703ir01service_OUTPUT_ERROR_REASON" xmlns:ns7="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR" 
qname="ns8:y703ir01service_OUTPUT_ERROR" xmlns:ns8="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$Y703IR01" 
qname="ns9:y703ir01service_OUTPUT_Y703IR01" xmlns:ns9="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT" 
qname="ns10:y703ir01service_OUTPUT" xmlns:ns10="urn:BeanService"/>
 </service>
**********************************************************************************************************************************************************************************************

The response mentioned in WSDL is  <element name="serviceReturn" 
type="tns1:y703ir01service_OUTPUT"/>

On submitting the request the response comes as below :

*********************************************************************************************************************************************************************************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Body>
      <in0Return xmlns="http://y703ir01service.msp.csc";>
         <ERROR>
            <item xmlns="">
               <REASON>
                  <item>
                     <ERRORDESC>Fatal Target Invocation Exception</ERRORDESC>
                     <ERROREROR>FATAL</ERROREROR>
                     <FIELD/>
                  </item>
               </REASON>
               <STATUS>2</STATUS>
            </item>
         </ERROR>
         <STATUS>2</STATUS>
         <y703IR01/>
      </in0Return>
   </soapenv:Body>
</soapenv:Envelope>
**********************************************************************************************************************************************************************************************
in0Return should be serviceReturn.

Please suggest how to fix the issue.


  was:
I have used Axis 1.4 to create a service and WSDL is as follows:

**********************************************************************************************************************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions 
targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:intf="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns:tns1="urn:BeanService" xmlns:tns2="http://y703ir01service.msp.csc"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->

 <wsdl:types>

  <schema elementFormDefault="qualified" targetNamespace="urn:BeanService" 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import 
namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

   <complexType name="y703ir01service_INPUT_INPUTDATAREC">

    <sequence>

     <element name="TI11I001" nillable="true" type="xsd:string"/>

     <element name="TI11I002" nillable="true" type="xsd:string"/>

     <element name="TI11I003" nillable="true" type="xsd:string"/>

     <element name="TI11I004" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_INPUT_UPDATEDATAREC">

    <sequence>

     <element name="TI11IO01" nillable="true" type="xsd:string"/>

     <element name="TI11IO02" nillable="true" type="xsd:string"/>

     <element name="TI11IO04" nillable="true" type="xsd:string"/>

     <element name="TI11IO05" nillable="true" type="xsd:string"/>

     <element name="TI11IO07" nillable="true" type="xsd:string"/>

     <element name="TI11IO08" nillable="true" type="xsd:string"/>

     <element name="TI11IO09" nillable="true" type="xsd:string"/>

     <element name="TI11IO10" nillable="true" type="xsd:string"/>

     <element name="TI11IO11" nillable="true" type="xsd:string"/>

     <element name="TI11IO12" nillable="true" type="xsd:string"/>

     <element name="TI11IO13" nillable="true" type="xsd:string"/>

     <element name="TI11IO14" nillable="true" type="xsd:string"/>

     <element name="TI11IO15" nillable="true" type="xsd:string"/>

     <element name="TI11IO16" nillable="true" type="xsd:string"/>

     <element name="TI11IO17" nillable="true" type="xsd:string"/>

     <element name="TI11IO18" nillable="true" type="xsd:string"/>

     <element name="TI11O001" nillable="true" type="xsd:string"/>

     <element name="TI11O002" nillable="true" type="xsd:string"/>

     <element name="TI11O003" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_INPUT">

    <sequence>

     <element name="BRANCH" nillable="true" type="xsd:string"/>

     <element name="COMMITFLAG" nillable="true" type="xsd:string"/>

     <element name="COMPANY" nillable="true" type="xsd:string"/>

     <element name="INPUTDATAREC" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC"/>

     <element name="LANGUAGE" nillable="true" type="xsd:string"/>

     <element name="OBJECTID" nillable="true" type="xsd:string"/>

     <element name="PASSWORD" nillable="true" type="xsd:string"/>

     <element name="UPDATEDATAREC" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC"/>

     <element name="USRPRF" nillable="true" type="xsd:string"/>

     <element name="VERBID" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR_REASON_FIELD">

    <sequence>

     <element name="ERRORFIELD" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR_REASON">

    <sequence>

     <element name="ERRORDESC" nillable="true" type="xsd:string"/>

     <element name="ERROREROR" nillable="true" type="xsd:string"/>

     <element name="FIELD" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_ERROR">

    <sequence>

     <element name="REASON" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT_Y703IR01">

    <sequence>

     <element name="MOREIND" nillable="true" type="xsd:string"/>

     <element name="OCNT" nillable="true" type="xsd:string"/>

     <element name="OCOD" nillable="true" type="xsd:string"/>

     <element name="OMSG" nillable="true" type="xsd:string"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

     <element name="TI11IO01" nillable="true" type="xsd:string"/>

     <element name="TI11IO02" nillable="true" type="xsd:string"/>

     <element name="TI11IO03" nillable="true" type="xsd:string"/>

     <element name="TI11IO04" nillable="true" type="xsd:string"/>

     <element name="TI11IO05" nillable="true" type="xsd:string"/>

     <element name="TI11IO06" nillable="true" type="xsd:string"/>

     <element name="TI11IO07" nillable="true" type="xsd:string"/>

     <element name="TI11IO08" nillable="true" type="xsd:string"/>

     <element name="TI11IO09" nillable="true" type="xsd:string"/>

     <element name="TI11IO10" nillable="true" type="xsd:string"/>

     <element name="TI11IO11" nillable="true" type="xsd:string"/>

     <element name="TI11IO12" nillable="true" type="xsd:string"/>

     <element name="TI11IO13" nillable="true" type="xsd:string"/>

     <element name="TI11IO14" nillable="true" type="xsd:string"/>

     <element name="TI11IO15" nillable="true" type="xsd:string"/>

     <element name="TI11IO16" nillable="true" type="xsd:string"/>

     <element name="TI11IO17" nillable="true" type="xsd:string"/>

     <element name="TI11IO18" nillable="true" type="xsd:string"/>

     <element name="TI11O001" nillable="true" type="xsd:string"/>

     <element name="TI11O002" nillable="true" type="xsd:string"/>

     <element name="TI11O003" nillable="true" type="xsd:string"/>

    </sequence>

   </complexType>

   <complexType name="y703ir01service_OUTPUT">

    <sequence>

     <element name="ERROR" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR"/>

     <element name="STATUS" nillable="true" type="xsd:string"/>

     <element name="y703IR01" nillable="true" 
type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01"/>

    </sequence>

   </complexType>

  </schema>

  <schema elementFormDefault="qualified" 
targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import namespace="urn:BeanService"/>

   <complexType name="ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_INPUT_INPUTDATAREC"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_INPUT_UPDATEDATAREC"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR_REASON"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_ERROR"/>

    </sequence>

   </complexType>

   <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01">

    <sequence>

     <element maxOccurs="unbounded" minOccurs="0" name="item" 
type="tns1:y703ir01service_OUTPUT_Y703IR01"/>

    </sequence>

   </complexType>

   <element name="serviceReturn" type="tns1:y703ir01service_OUTPUT"/>

  </schema>

  <schema elementFormDefault="qualified" 
targetNamespace="http://y703ir01service.msp.csc"; 
xmlns="http://www.w3.org/2001/XMLSchema";>

   <import namespace="urn:BeanService"/>

   <import 
namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

   <element name="in0" type="tns1:y703ir01service_INPUT"/>

  </schema>

 </wsdl:types>

 
   <wsdl:message name="serviceResponse">

 
      <wsdl:part element="impl:serviceReturn" name="serviceReturn"/>

 
   </wsdl:message>

 
   <wsdl:message name="serviceRequest">

 
      <wsdl:part element="tns2:in0" name="in0"/>

 
   </wsdl:message>

 
   <wsdl:portType name="y703ir01serviceservice">

 
      <wsdl:operation name="service" parameterOrder="in0">

 
         <wsdl:input message="impl:serviceRequest" name="serviceRequest"/>

 
         <wsdl:output message="impl:serviceResponse" name="serviceResponse"/>

 
      </wsdl:operation>

 
   </wsdl:portType>

 
   <wsdl:binding name="y703ir01serviceserviceSoapBinding" 
type="impl:y703ir01serviceservice">

 
      <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>

 
      <wsdl:operation name="service">

 
         <wsdlsoap:operation soapAction=""/>

 
         <wsdl:input name="serviceRequest">

 
            <wsdlsoap:body use="literal"/>

 
         </wsdl:input>

 
         <wsdl:output name="serviceResponse">

 
            <wsdlsoap:body use="literal"/>

 
         </wsdl:output>

 
      </wsdl:operation>

 
   </wsdl:binding>

 
   <wsdl:service name="y703ir01serviceserviceService">

 
      <wsdl:port binding="impl:y703ir01serviceserviceSoapBinding" 
name="y703ir01serviceservice">

 
         <wsdlsoap:address 
location="http://10.238.97.204/axis/services/y703ir01serviceservice"/>

 
      </wsdl:port>

 
   </wsdl:service>
</wsdl:definitions>

**********************************************************************************************************************************************************************************************

The WSDD File is:

**********************************************************************************************************************************************************************************************
<service name="y703ir01serviceservice" provider="java:RPC" style="document" 
use="literal">
  <parameter name="allowedMethods" value="service"/>
  <parameter name="className" 
value="csc.msp.y703ir01service.y703ir01serviceservice"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$INPUTDATAREC" 
qname="ns1:y703ir01service_INPUT_INPUTDATAREC" xmlns:ns1="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$UPDATEDATAREC" 
qname="ns2:y703ir01service_INPUT_UPDATEDATAREC" xmlns:ns2="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT" 
qname="ns3:y703ir01service_INPUT" xmlns:ns3="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.NewDataSet" 
qname="ns4:y703ir01service_NewDataSet" xmlns:ns4="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.NewDataSet" 
qname="ns5:y703ir01service_NewDataSet" xmlns:ns5="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON$FIELD" 
qname="ns6:y703ir01service_OUTPUT_ERROR_REASON_FIELD" 
xmlns:ns6="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON" 
qname="ns7:y703ir01service_OUTPUT_ERROR_REASON" xmlns:ns7="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR" 
qname="ns8:y703ir01service_OUTPUT_ERROR" xmlns:ns8="urn:BeanService"/>
  <beanMapping 
languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$Y703IR01" 
qname="ns9:y703ir01service_OUTPUT_Y703IR01" xmlns:ns9="urn:BeanService"/>
  <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT" 
qname="ns10:y703ir01service_OUTPUT" xmlns:ns10="urn:BeanService"/>
 </service>
**********************************************************************************************************************************************************************************************

The response mentioned in WSDL is  <element name="serviceReturn" 
type="tns1:y703ir01service_OUTPUT"/>

On submitting the request the response comes as below :

**********************************************************************************************************************************************************************************************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Body>
      <in0Return xmlns="http://y703ir01service.msp.csc";>
         <ERROR>
            <item xmlns="">
               <REASON>
                  <item>
                     <ERRORDESC>Fatal Target Invocation Exception</ERRORDESC>
                     <ERROREROR>FATAL</ERROREROR>
                     <FIELD/>
                  </item>
               </REASON>
               <STATUS>2</STATUS>
            </item>
         </ERROR>
         <STATUS>2</STATUS>
         <y703IR01/>
      </in0Return>
   </soapenv:Body>
</soapenv:Envelope>
**********************************************************************************************************************************************************************************************
in0Return should be serviceReturn.

Please suggest how to fix the issue.



> Return Element Axis 1.4 Document/Literal Service
> ------------------------------------------------
>
>                 Key: AXIS-2838
>                 URL: https://issues.apache.org/jira/browse/AXIS-2838
>             Project: Axis
>          Issue Type: Bug
>          Components: Serialization/Deserialization
>    Affects Versions: 1.4
>         Environment: Apache Tomcat 5.5.26, Axis 1.4
>            Reporter: Nitin Chawla
>              Labels: patch
>
> I have used Axis 1.4 to create a service and WSDL is as follows:
> *********************************************************************************************************************************************************************************
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions 
> targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
> xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
> xmlns:impl="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
> xmlns:intf="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
> xmlns:tns1="urn:BeanService" xmlns:tns2="http://y703ir01service.msp.csc"; 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <!--WSDL created by Apache Axis version: 1.4
> Built on Apr 22, 2006 (06:55:48 PDT)-->
>  <wsdl:types>
>   <schema elementFormDefault="qualified" targetNamespace="urn:BeanService" 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import 
> namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>
>    <complexType name="y703ir01service_INPUT_INPUTDATAREC">
>     <sequence>
>      <element name="TI11I001" nillable="true" type="xsd:string"/>
>      <element name="TI11I002" nillable="true" type="xsd:string"/>
>      <element name="TI11I003" nillable="true" type="xsd:string"/>
>      <element name="TI11I004" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_INPUT_UPDATEDATAREC">
>     <sequence>
>      <element name="TI11IO01" nillable="true" type="xsd:string"/>
>      <element name="TI11IO02" nillable="true" type="xsd:string"/>
>      <element name="TI11IO04" nillable="true" type="xsd:string"/>
>      <element name="TI11IO05" nillable="true" type="xsd:string"/>
>      <element name="TI11IO07" nillable="true" type="xsd:string"/>
>      <element name="TI11IO08" nillable="true" type="xsd:string"/>
>      <element name="TI11IO09" nillable="true" type="xsd:string"/>
>      <element name="TI11IO10" nillable="true" type="xsd:string"/>
>      <element name="TI11IO11" nillable="true" type="xsd:string"/>
>      <element name="TI11IO12" nillable="true" type="xsd:string"/>
>      <element name="TI11IO13" nillable="true" type="xsd:string"/>
>      <element name="TI11IO14" nillable="true" type="xsd:string"/>
>      <element name="TI11IO15" nillable="true" type="xsd:string"/>
>      <element name="TI11IO16" nillable="true" type="xsd:string"/>
>      <element name="TI11IO17" nillable="true" type="xsd:string"/>
>      <element name="TI11IO18" nillable="true" type="xsd:string"/>
>      <element name="TI11O001" nillable="true" type="xsd:string"/>
>      <element name="TI11O002" nillable="true" type="xsd:string"/>
>      <element name="TI11O003" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_INPUT">
>     <sequence>
>      <element name="BRANCH" nillable="true" type="xsd:string"/>
>      <element name="COMMITFLAG" nillable="true" type="xsd:string"/>
>      <element name="COMPANY" nillable="true" type="xsd:string"/>
>      <element name="INPUTDATAREC" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC"/>
>      <element name="LANGUAGE" nillable="true" type="xsd:string"/>
>      <element name="OBJECTID" nillable="true" type="xsd:string"/>
>      <element name="PASSWORD" nillable="true" type="xsd:string"/>
>      <element name="UPDATEDATAREC" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC"/>
>      <element name="USRPRF" nillable="true" type="xsd:string"/>
>      <element name="VERBID" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_OUTPUT_ERROR_REASON_FIELD">
>     <sequence>
>      <element name="ERRORFIELD" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_OUTPUT_ERROR_REASON">
>     <sequence>
>      <element name="ERRORDESC" nillable="true" type="xsd:string"/>
>      <element name="ERROREROR" nillable="true" type="xsd:string"/>
>      <element name="FIELD" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_OUTPUT_ERROR">
>     <sequence>
>      <element name="REASON" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON"/>
>      <element name="STATUS" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_OUTPUT_Y703IR01">
>     <sequence>
>      <element name="MOREIND" nillable="true" type="xsd:string"/>
>      <element name="OCNT" nillable="true" type="xsd:string"/>
>      <element name="OCOD" nillable="true" type="xsd:string"/>
>      <element name="OMSG" nillable="true" type="xsd:string"/>
>      <element name="STATUS" nillable="true" type="xsd:string"/>
>      <element name="TI11IO01" nillable="true" type="xsd:string"/>
>      <element name="TI11IO02" nillable="true" type="xsd:string"/>
>      <element name="TI11IO03" nillable="true" type="xsd:string"/>
>      <element name="TI11IO04" nillable="true" type="xsd:string"/>
>      <element name="TI11IO05" nillable="true" type="xsd:string"/>
>      <element name="TI11IO06" nillable="true" type="xsd:string"/>
>      <element name="TI11IO07" nillable="true" type="xsd:string"/>
>      <element name="TI11IO08" nillable="true" type="xsd:string"/>
>      <element name="TI11IO09" nillable="true" type="xsd:string"/>
>      <element name="TI11IO10" nillable="true" type="xsd:string"/>
>      <element name="TI11IO11" nillable="true" type="xsd:string"/>
>      <element name="TI11IO12" nillable="true" type="xsd:string"/>
>      <element name="TI11IO13" nillable="true" type="xsd:string"/>
>      <element name="TI11IO14" nillable="true" type="xsd:string"/>
>      <element name="TI11IO15" nillable="true" type="xsd:string"/>
>      <element name="TI11IO16" nillable="true" type="xsd:string"/>
>      <element name="TI11IO17" nillable="true" type="xsd:string"/>
>      <element name="TI11IO18" nillable="true" type="xsd:string"/>
>      <element name="TI11O001" nillable="true" type="xsd:string"/>
>      <element name="TI11O002" nillable="true" type="xsd:string"/>
>      <element name="TI11O003" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="y703ir01service_OUTPUT">
>     <sequence>
>      <element name="ERROR" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_ERROR"/>
>      <element name="STATUS" nillable="true" type="xsd:string"/>
>      <element name="y703IR01" nillable="true" 
> type="impl:ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01"/>
>     </sequence>
>    </complexType>
>   </schema>
>   <schema elementFormDefault="qualified" 
> targetNamespace="http://10.238.97.204/axis/services/y703ir01serviceservice"; 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import namespace="urn:BeanService"/>
>    <complexType name="ArrayOf_tns1_y703ir01service_INPUT_INPUTDATAREC">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_INPUT_INPUTDATAREC"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tns1_y703ir01service_INPUT_UPDATEDATAREC">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_INPUT_UPDATEDATAREC"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON_FIELD">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_OUTPUT_ERROR_REASON_FIELD"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR_REASON">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_OUTPUT_ERROR_REASON"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_ERROR">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_OUTPUT_ERROR"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOf_tns1_y703ir01service_OUTPUT_Y703IR01">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns1:y703ir01service_OUTPUT_Y703IR01"/>
>     </sequence>
>    </complexType>
>    <element name="serviceReturn" type="tns1:y703ir01service_OUTPUT"/>
>   </schema>
>   <schema elementFormDefault="qualified" 
> targetNamespace="http://y703ir01service.msp.csc"; 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>    <import namespace="urn:BeanService"/>
>    <import 
> namespace="http://10.238.97.204/axis/services/y703ir01serviceservice"/>
>    <element name="in0" type="tns1:y703ir01service_INPUT"/>
>   </schema>
>  </wsdl:types>
>  
>    <wsdl:message name="serviceResponse">
>  
>       <wsdl:part element="impl:serviceReturn" name="serviceReturn"/>
>  
>    </wsdl:message>
>  
>    <wsdl:message name="serviceRequest">
>  
>       <wsdl:part element="tns2:in0" name="in0"/>
>  
>    </wsdl:message>
>  
>    <wsdl:portType name="y703ir01serviceservice">
>  
>       <wsdl:operation name="service" parameterOrder="in0">
>  
>          <wsdl:input message="impl:serviceRequest" name="serviceRequest"/>
>  
>          <wsdl:output message="impl:serviceResponse" name="serviceResponse"/>
>  
>       </wsdl:operation>
>  
>    </wsdl:portType>
>  
>    <wsdl:binding name="y703ir01serviceserviceSoapBinding" 
> type="impl:y703ir01serviceservice">
>  
>       <wsdlsoap:binding style="document" 
> transport="http://schemas.xmlsoap.org/soap/http"/>
>  
>       <wsdl:operation name="service">
>  
>          <wsdlsoap:operation soapAction=""/>
>  
>          <wsdl:input name="serviceRequest">
>  
>             <wsdlsoap:body use="literal"/>
>  
>          </wsdl:input>
>  
>          <wsdl:output name="serviceResponse">
>  
>             <wsdlsoap:body use="literal"/>
>  
>          </wsdl:output>
>  
>       </wsdl:operation>
>  
>    </wsdl:binding>
>  
>    <wsdl:service name="y703ir01serviceserviceService">
>  
>       <wsdl:port binding="impl:y703ir01serviceserviceSoapBinding" 
> name="y703ir01serviceservice">
>  
>          <wsdlsoap:address 
> location="http://10.238.97.204/axis/services/y703ir01serviceservice"/>
>  
>       </wsdl:port>
>  
>    </wsdl:service>
> </wsdl:definitions>
> *********************************************************************************************************************************************************************************
> The WSDD File is:
> *********************************************************************************************************************************************************************************
> <service name="y703ir01serviceservice" provider="java:RPC" style="document" 
> use="literal">
>   <parameter name="allowedMethods" value="service"/>
>   <parameter name="className" 
> value="csc.msp.y703ir01service.y703ir01serviceservice"/>
>   <beanMapping 
> languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$INPUTDATAREC" 
> qname="ns1:y703ir01service_INPUT_INPUTDATAREC" xmlns:ns1="urn:BeanService"/>
>   <beanMapping 
> languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT$UPDATEDATAREC" 
> qname="ns2:y703ir01service_INPUT_UPDATEDATAREC" xmlns:ns2="urn:BeanService"/>
>   <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.INPUT" 
> qname="ns3:y703ir01service_INPUT" xmlns:ns3="urn:BeanService"/>
>   <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.in.NewDataSet" 
> qname="ns4:y703ir01service_NewDataSet" xmlns:ns4="urn:BeanService"/>
>   <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.NewDataSet" 
> qname="ns5:y703ir01service_NewDataSet" xmlns:ns5="urn:BeanService"/>
>   <beanMapping 
> languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON$FIELD" 
> qname="ns6:y703ir01service_OUTPUT_ERROR_REASON_FIELD" 
> xmlns:ns6="urn:BeanService"/>
>   <beanMapping 
> languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR$REASON" 
> qname="ns7:y703ir01service_OUTPUT_ERROR_REASON" xmlns:ns7="urn:BeanService"/>
>   <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$ERROR" 
> qname="ns8:y703ir01service_OUTPUT_ERROR" xmlns:ns8="urn:BeanService"/>
>   <beanMapping 
> languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT$Y703IR01" 
> qname="ns9:y703ir01service_OUTPUT_Y703IR01" xmlns:ns9="urn:BeanService"/>
>   <beanMapping languageSpecificType="java:csc.msp.Y703.IR01.out.OUTPUT" 
> qname="ns10:y703ir01service_OUTPUT" xmlns:ns10="urn:BeanService"/>
>  </service>
> **********************************************************************************************************************************************************************************************
> The response mentioned in WSDL is  <element name="serviceReturn" 
> type="tns1:y703ir01service_OUTPUT"/>
> On submitting the request the response comes as below :
> *********************************************************************************************************************************************************************************
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>    <soapenv:Body>
>       <in0Return xmlns="http://y703ir01service.msp.csc";>
>          <ERROR>
>             <item xmlns="">
>                <REASON>
>                   <item>
>                      <ERRORDESC>Fatal Target Invocation Exception</ERRORDESC>
>                      <ERROREROR>FATAL</ERROREROR>
>                      <FIELD/>
>                   </item>
>                </REASON>
>                <STATUS>2</STATUS>
>             </item>
>          </ERROR>
>          <STATUS>2</STATUS>
>          <y703IR01/>
>       </in0Return>
>    </soapenv:Body>
> </soapenv:Envelope>
> **********************************************************************************************************************************************************************************************
> in0Return should be serviceReturn.
> Please suggest how to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to