One of the many known array bugs in Axis 1.2. I suggest you upgrade to Axis 1.4.

On 4/20/06, akkachotu <[EMAIL PROTECTED] > wrote:
I have below wsdl generated using AXIS 1.2 Final :

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://ws.xml.com/wsdl/GRT"
               xmlns:apachesoap=" http://xml.apache.org/xml-soap"
               xmlns:impl="http://ws.xml.com/wsdl/GRT"
               xmlns:intf=" http://ws.xml.com/wsdl/GRT"
               xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
               xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <wsdl:types>
               <schema elementFormDefault="qualified"
                               targetNamespace="http://ws.xml.com/wsdl/GRT"
                               xmlns="http://www.w3.org/2001/XMLSchema">
                       <element name="getEROC">
                               <complexType>
                                       <sequence>
                                               <element name="request"
type="impl:GRTWSRequest"/>
                                       </sequence>
                               </complexType>
                       </element>
                       <complexType name="GRTWSRequest">
                               <sequence>
                                       <element name="startDate"
nillable="true" type="xsd:string"/>
                                       <element name="endDate"
nillable="true" type="xsd:string"/>
                               </sequence>
                       </complexType>
                       <element name="getEROCResponse">
                               <complexType>
                                       <sequence>
                                               <element
name="getEROCReturn" type="impl:GRTWSResponseList"/>
                                       </sequence>
                               </complexType>
                       </element>
                       <complexType name="GRTWSResponse">
                               <sequence>
                                       <element name="discRate"
type="xsd:double"/>
                                       <element name="seqNumber"
nillable="true" type="xsd:string"/>
                               </sequence>
                       </complexType>
                       <complexType name="ArrayOfGRTWSResponse">
                               <sequence>
                                       <element maxOccurs="unbounded"
minOccurs="0" name="item"
type="impl:GRTWSResponse"/>
                               </sequence>
                       </complexType>
                       <complexType name="GRTWSResponseList">
                               <sequence>
                                       <element name="returnCode"
nillable="true" type="xsd:string"/>
                                       <element name="getRRList" nillable="true"
type="impl:ArrayOfGRTWSResponse"/>
                               </sequence>
                       </complexType>
               </schema>
       </wsdl:types>
       <wsdl:message name="getEROCRequest">
               <wsdl:part element="intf:getEROC" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="getEROCResponse">
               <wsdl:part element="intf:getEROCResponse" name="parameters"/>
       </wsdl:message>
       <wsdl:portType name="GRTWebService">
               <wsdl:operation name="getEROC">
                       <wsdl:input message="intf:getEROCRequest"
name="getEROCRequest"/>
                       <wsdl:output message="intf:getEROCResponse"
name="getEROCResponse"/>
               </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="GRTSoapBinding" type="intf:GRTWebService">
               <wsdlsoap:binding style="document"
transport=" http://schemas.xmlsoap.org/soap/http"/>
               <wsdl:operation name="getEROC">
                       <wsdlsoap:operation soapAction=""/>
                       <wsdl:input name="getEROCRequest">
                               <wsdlsoap:body use="literal"/>
                       </wsdl:input>
                       <wsdl:output name="getEROCResponse">
                               <wsdlsoap:body use="literal"/>
                       </wsdl:output>
               </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="GRTWebService">
               <wsdl:port binding="intf:GRTSoapBinding" name="GRT">
                       <wsdlsoap:address
location="http://localhst:8080/mywar/services/GRT"/>
               </wsdl:port>
       </wsdl:service>
</wsdl:definitions>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$





Now when I deploy the service using AXIS 1.2 Final and generate the
response I am getting below soap response from AXIS

<?xml version="1.0" encoding="utf-8"?>
  <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>
        <getEROCResponse xmlns="http://ws.xml.com/wsdl/GRT">
           <getEROCReturn>
              <returnCode>RETURN CODE</returnCode>
              <getRRList>
                 <getRRList>
                    <discRate>100.0</discRate>
                    <seqNumber xsi:nil="true"/>
                 </getRRList>
              </getRRList>
           </getEligibleROCReturn>
        </getEligibleROCResponse>
     </soapenv:Body>
  </soapenv:Envelope>




instead of




<?xml version="1.0" encoding="utf-8"?>
  <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>
        <getEROCResponse xmlns="http://ws.xml.com/wsdl/GRT">
           <getEROCReturn>
              <returnCode>RETURN CODE</returnCode>
              <getRRList>
                 <item>
                    <discRate>100.0</discRate>
                    <seqNumber xsi:nil="true"/>
                 </item>
              </getRRList>
           </getEligibleROCReturn>
        </getEligibleROCResponse>
     </soapenv:Body>
  </soapenv:Envelope>






The element name should be <item> instead of <getRRList> inside <getRRList>.
Can anyone please suggest the reason for this.  How actually response
element names are created by AXIS ? Can we control the elements name
while generating soap message using AXIS? Thanks in advance for your
time and reply.


Reply Forward
Recover from Trash




[EMAIL PROTECTED]  to me
  More options   Apr 18 (2 days ago)

Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

< [email protected]>:
Sorry, only subscribers may post. If you are a subscriber, check to be
sure you are sending from your subscribed address. (#5.7.2)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 76207 invoked by uid 99); 18 Apr 2006 22:11:01 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
   by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 15:11:01 -0700
X-ASF-Spam-Status: No, hits=1.3 required=10.0
       tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org : domain of [EMAIL PROTECTED]
designates 64.233.166.180 as permitted sender)
Received: from [64.233.166.180 ] (HELO pproxy.gmail.com) (64.233.166.180)
   by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 15:11:00 -0700
Received: by pproxy.gmail.com with SMTP id b29so1004985pya
       for <[email protected]>; Tue, 18 Apr 2006 15:10:40 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
       s=beta; d=gmail.com;
       h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
       b=QomIH3u8bOHrq3b1o6xBbOywuqtRdwf6kz8RjOpjwnTLZvmkMMPjQdowRTXWIyFJkScjv0was9hck5bDCILeElvxySpIrJ+Yq+lP0RV5a4wbRc6c4ywNqM+9mI7zRfjy82BB25dKJxpF7YAkujTtOrqPUzF1fjK/tmQFWfoRJbo=
Received: by 10.35.70.17 with SMTP id x17mr2026207pyk;
       Tue, 18 Apr 2006 15:10:40 -0700 (PDT)
Received: by 10.35.103.17 with HTTP; Tue, 18 Apr 2006 15:10:40 -0700 (PDT)
Message-ID: < [EMAIL PROTECTED]>
Date: Tue, 18 Apr 2006 15:10:40 -0700
From: akkachotu < [EMAIL PROTECTED]>
To: [email protected]
Subject: Wrong element appearing in soap message
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
X-Virus-Checked: Checked by ClamAV on apache.org


I have below wsdl generated using AXIS 1.2 Final :

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<wsdl:definitions targetNamespace=3D" http://ws.xml.com/wsdl/GRT"
=09=09xmlns:apachesoap=3D"http://xml.apache.org/xml-soap"
=09=09xmlns:impl=3D"http://ws.xml.com/wsdl/GRT "
=09=09xmlns:intf=3D"http://ws.xml.com/wsdl/GRT"
=09=09xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"
=09=09xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/"
=09=09xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema ">
=09<wsdl:types>
=09=09<schema elementFormDefault=3D"qualified"
=09=09=09=09targetNamespace=3D"http://ws.xml.com/wsdl/GRT"
=09=09=09=09xmlns=3D" http://www.w3.org/2001/XMLSchema">
=09=09=09<element name=3D"getEROC">
=09=09=09=09<complexType>
=09=09=09=09=09<sequence>
=09=09=09=09=09=09<element name=3D"request" type=3D"impl:GRTWSRequest"/>
=09=09=09=09=09</sequence>
=09=09=09=09</complexType>
=09=09=09</element>
=09=09=09<complexType name=3D"GRTWSRequest">
=09=09=09=09<sequence>
=09=09=09=09=09<element name=3D"startDate" nillable=3D"true" type=3D"xsd:st=
ring"/>
=09=09=09=09=09<element name=3D"endDate" nillable=3D"true" type=3D"xsd:stri=
ng"/>
=09=09=09=09</sequence>
=09=09=09</complexType>
=09=09=09<element name=3D"getEROCResponse">
=09=09=09=09<complexType>
=09=09=09=09=09<sequence>
=09=09=09=09=09=09<element name=3D"getEROCReturn" type=3D"impl:GRTWSRespons=
eList"/>
=09=09=09=09=09</sequence>
=09=09=09=09</complexType>
=09=09=09</element>
=09=09=09<complexType name=3D"GRTWSResponse">
=09=09=09=09<sequence>
=09=09=09=09=09<element name=3D"discRate" type=3D"xsd:double"/>
=09=09=09=09=09<element name=3D"seqNumber" nillable=3D"true" type=3D"xsd:st=
ring"/>
=09=09=09=09</sequence>
=09=09=09</complexType>
=09=09=09<complexType name=3D"ArrayOfGRTWSResponse">
=09=09=09=09<sequence>
=09=09=09=09=09<element maxOccurs=3D"unbounded" minOccurs=3D"0" name=3D"ite=
m"
type=3D"impl:GRTWSResponse"/>
=09=09=09=09</sequence>
=09=09=09</complexType>
=09=09=09<complexType name=3D"GRTWSResponseList">
=09=09=09=09<sequence>
=09=09=09=09=09<element name=3D"returnCode" nillable=3D"true" type=3D"xsd:s=
tring"/>
=09=09=09=09=09<element name=3D"getRRList" nillable=3D"true"
type=3D"impl:ArrayOfGRTWSResponse"/>
=09=09=09=09</sequence>
=09=09=09</complexType>
=09=09</schema>
=09</wsdl:types>
=09<wsdl:message name=3D"getEROCRequest">
=09=09<wsdl:part element=3D"intf:getEROC" name=3D"parameters"/>
=09</wsdl:message>
=09<wsdl:message name=3D"getEROCResponse">
=09=09<wsdl:part element=3D"intf:getEROCResponse" name=3D"parameters"/>
=09</wsdl:message>
=09<wsdl:portType name=3D"GRTWebService">
=09=09<wsdl:operation name=3D"getEROC">
=09=09=09<wsdl:input message=3D"intf:getEROCRequest" name=3D"getEROCRequest=
"/>
=09=09=09<wsdl:output message=3D"intf:getEROCResponse" name=3D"getEROCRespo=
nse"/>
=09=09</wsdl:operation>
=09</wsdl:portType>
=09<wsdl:binding name=3D"GRTSoapBinding" type=3D"intf:GRTWebService">
=09=09<wsdlsoap:binding style=3D"document"
transport=3D"http://schemas.xmlsoap.org/soap/http"/>
=09=09<wsdl:operation name=3D"getEROC">
=09=09=09<wsdlsoap:operation soapAction=3D""/>
=09=09=09<wsdl:input name=3D"getEROCRequest">
=09=09=09=09<wsdlsoap:body use=3D"literal"/>
=09=09=09</wsdl:input>
=09=09=09<wsdl:output name=3D"getEROCResponse">
=09=09=09=09<wsdlsoap:body use=3D"literal"/>
=09=09=09</wsdl:output>
=09=09</wsdl:operation>
=09</wsdl:binding>
=09<wsdl:service name=3D"GRTWebService">
=09=09<wsdl:port binding=3D"intf:GRTSoapBinding" name=3D"GRT">
=09=09=09<wsdlsoap:address location=3D"http://localhst:8080/mywar/services/=
GRT"/>
=09=09</wsdl:port>
=09</wsdl:service>

</wsdl:definitions>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$





Now when I deploy the service using AXIS 1.2 Final and generate the
response I am getting below soap response from AXIS


<?xml version=3D"1.0" encoding=3D"utf-8"?>
  <soapenv:Envelope
xmlns:soapenv=3D" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=3D" http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
        <getEROCResponse xmlns=3D"http://ws.xml.com/wsdl/GRT">

           <getEROCReturn>
              <returnCode>RETURN CODE</returnCode>
              <getRRList>
                 <getRRList>
                    <discRate>100.0</discRate>

                    <seqNumber xsi:nil=3D"true"/>

                 </getRRList>
              </getRRList>
           </getEligibleROCReturn>
        </getEligibleROCResponse>
     </soapenv:Body>
  </soapenv:Envelope>




instead of





<?xml version=3D"1.0" encoding=3D"utf-8"?>
  <soapenv:Envelope
xmlns:soapenv=3D" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=3D" http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
        <getEROCResponse xmlns=3D"http://ws.xml.com/wsdl/GRT">

           <getEROCReturn>
              <returnCode>RETURN CODE</returnCode>
              <getRRList>
                 <item>
                    <discRate>100.0</discRate>

                    <seqNumber xsi:nil=3D"true"/>

- Hide quoted text -
                 </item>
              </getRRList>
           </getEligibleROCReturn>
        </getEligibleROCResponse>
     </soapenv:Body>
  </soapenv:Envelope>






The element name should be <item> instead of <getRRList> inside <getRRList>=
.
Can anyone please suggest the reason for this.  How actually response
element names are created by AXIS ? Can we control the elements name
while generating soap message using AXIS? Thanks in advance for your
time and reply.

Reply via email to