[ http://issues.apache.org/jira/browse/AXIS-2100?page=all ]
     
Davanum Srinivas resolved AXIS-2100:
------------------------------------

    Resolution: Fixed

Applied Thorsten's patch.

> duplicate xsi:type="soapenc:Array"
> ----------------------------------
>
>          Key: AXIS-2100
>          URL: http://issues.apache.org/jira/browse/AXIS-2100
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2, 1.2.1
>  Environment: Shouldn't matter, but it's WinXP Pro, java.version=1.4.2_01, 
> Tomcat 5.0, Axis 1.2.1
>     Reporter: Kurt Indermaur

>
> Any time I have an array in the expected response I get a duplicate attribute 
> (xsi:type="soapenc:Array") in the response. Perl's SOAP::Lite chokes on the 
> duplicate attribute. The WSDD and response are below.
> Using the book query example from chapter 2 of O'Reilly's "Java Web Services 
> in a Nutshell" book (downloadable from 
> http://examples.oreilly.com/javawsian/):
> ---------------------
> The WSDD:
> ---------------------
> <deployment xmlns="http://xml.apache.org/axis/wsdd/";
>             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>  <service name="BookQuery" provider="java:RPC">
>    <requestFlow>
>      <handler type="soapmonitor"/>
>    </requestFlow>
>    <responseFlow>
>      <handler type="soapmonitor"/>
>    </responseFlow>
>    <parameter name="className" 
> value="ora.jwsnut.chapter2.bookservice.BookServiceServant"/>
>    <parameter name="allowedMethods" value="*"/>
>    <beanMapping qname="bookNS:BookInfo" xmlns:bookNS="urn:bookService"
>      languageSpecificType="java:ora.jwsnut.chapter2.bookservice.BookInfo"/>
>  </service>
> </deployment>
> ---------------------
> The response. The duplicate attributes are around the 13th and 14th lines 
> (<getBookInfoReturn...).
> ---------------------
> HTTP/1.1 200 OK
> Content-Type: text/xml;charset=utf-8
> Date: Fri, 01 Jul 2005 20:58:27 GMT
> Server: Sun-Java-System/Web-Services-Pack-1.4
> Connection: close
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/1999/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";>
>       <soapenv:Body>
>          <ns1:getBookInfoResponse 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:ns1="http://bookservice.chapter2.jwsnut.ora";>
>             <getBookInfoReturn soapenc:arrayType="ns2:BookInfo[12]" 
> xsi:type="soapenc:Array" xsi:type="soapenc:Array" xmlns:ns2="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>                <getBookInfoReturn href="#id0"/>
>                <getBookInfoReturn href="#id1"/>
>                <getBookInfoReturn href="#id2"/>
>                <getBookInfoReturn href="#id3"/>
>                <getBookInfoReturn href="#id4"/>
>                <getBookInfoReturn href="#id5"/>
>                <getBookInfoReturn href="#id6"/>
>                <getBookInfoReturn href="#id7"/>
>                <getBookInfoReturn href="#id8"/>
>                <getBookInfoReturn href="#id9"/>
>                <getBookInfoReturn href="#id10"/>
>                <getBookInfoReturn href="#id11"/>
>             </getBookInfoReturn>
>          </ns1:getBookInfoResponse>
>          <multiRef id="id3" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns3:BookInfo" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns3="urn:bookService">
>             <author xsi:type="ns4:string" 
> xmlns:ns4="http://www.w3.org/2001/XMLSchema";>Robert Eckstein et al</author>
>             <editor xsi:type="ns5:string" 
> xmlns:ns5="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns6:double" 
> xmlns:ns6="http://www.w3.org/2001/XMLSchema";>44.95</price>
>             <title xsi:type="ns7:string" 
> xmlns:ns7="http://www.w3.org/2001/XMLSchema";>Java Swing</title>
>          </multiRef>
>          <multiRef id="id1" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns8:BookInfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns8="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns9:string" 
> xmlns:ns9="http://www.w3.org/2001/XMLSchema";>David Flanagan</author>
>             <editor xsi:type="ns10:string" 
> xmlns:ns10="http://www.w3.org/2001/XMLSchema";>Paula Ferguson</editor>
>             <price xsi:type="ns11:double" 
> xmlns:ns11="http://www.w3.org/2001/XMLSchema";>29.95</price>
>             <title xsi:type="ns12:string" 
> xmlns:ns12="http://www.w3.org/2001/XMLSchema";>Java Foundation Classes in a 
> Nutshell</title>
>          </multiRef>
>          <multiRef id="id4" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns13:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns13="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns14:string" 
> xmlns:ns14="http://www.w3.org/2001/XMLSchema";>Jason Hunter, William 
> Crawford</author>
>             <editor xsi:type="ns15:string" 
> xmlns:ns15="http://www.w3.org/2001/XMLSchema";>Paula Ferguson</editor>
>             <price xsi:type="ns16:double" 
> xmlns:ns16="http://www.w3.org/2001/XMLSchema";>32.95</price>
>             <title xsi:type="ns17:string" 
> xmlns:ns17="http://www.w3.org/2001/XMLSchema";>Java Servlet Programming</title>
>          </multiRef>
>          <multiRef id="id9" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns18:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns18="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns19:string" 
> xmlns:ns19="http://www.w3.org/2001/XMLSchema";>Kevin Lewis</author>
>             <editor xsi:type="ns20:string" 
> xmlns:ns20="http://www.w3.org/2001/XMLSchema";>John Posner, Mike 
> Loukides</editor>
>             <price xsi:type="ns21:double" 
> xmlns:ns21="http://www.w3.org/2001/XMLSchema";>29.95</price>
>             <title xsi:type="ns22:string" 
> xmlns:ns22="http://www.w3.org/2001/XMLSchema";>Creating Effective 
> JavaHelp</title>
>          </multiRef>
>          <multiRef id="id0" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns23:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns23="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns24:string" 
> xmlns:ns24="http://www.w3.org/2001/XMLSchema";>David Flanagan</author>
>             <editor xsi:type="ns25:string" 
> xmlns:ns25="http://www.w3.org/2001/XMLSchema";>Paula Ferguson, Robert 
> Eckstein</editor>
>             <price xsi:type="ns26:double" 
> xmlns:ns26="http://www.w3.org/2001/XMLSchema";>39.95</price>
>             <title xsi:type="ns27:string" 
> xmlns:ns27="http://www.w3.org/2001/XMLSchema";>Java in a Nutshell</title>
>          </multiRef>
>          <multiRef id="id10" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns28:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns28="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns29:string" 
> xmlns:ns29="http://www.w3.org/2001/XMLSchema";>Jack Shirazi</author>
>             <editor xsi:type="ns30:string" 
> xmlns:ns30="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns31:double" 
> xmlns:ns31="http://www.w3.org/2001/XMLSchema";>34.95</price>
>             <title xsi:type="ns32:string" 
> xmlns:ns32="http://www.w3.org/2001/XMLSchema";>Java Performance Tuning</title>
>          </multiRef>
>          <multiRef id="id7" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns33:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns33="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns34:string" 
> xmlns:ns34="http://www.w3.org/2001/XMLSchema";>Elliotte Rusty Harold</author>
>             <editor xsi:type="ns35:string" 
> xmlns:ns35="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns36:double" 
> xmlns:ns36="http://www.w3.org/2001/XMLSchema";>32.95</price>
>             <title xsi:type="ns37:string" 
> xmlns:ns37="http://www.w3.org/2001/XMLSchema";>Java I/O</title>
>          </multiRef>
>          <multiRef id="id11" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns38:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns38="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns39:string" 
> xmlns:ns39="http://www.w3.org/2001/XMLSchema";>Andrew Deitsch, David 
> Czarnecki</author>
>             <editor xsi:type="ns40:string" 
> xmlns:ns40="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns41:double" 
> xmlns:ns41="http://www.w3.org/2001/XMLSchema";>39.95</price>
>             <title xsi:type="ns42:string" 
> xmlns:ns42="http://www.w3.org/2001/XMLSchema";>Java 
> Internationalization</title>
>          </multiRef>
>          <multiRef id="id8" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns43:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns43="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns44:string" 
> xmlns:ns44="http://www.w3.org/2001/XMLSchema";>Jonathan Knudsen</author>
>             <editor xsi:type="ns45:string" 
> xmlns:ns45="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns46:double" 
> xmlns:ns46="http://www.w3.org/2001/XMLSchema";>29.95</price>
>             <title xsi:type="ns47:string" 
> xmlns:ns47="http://www.w3.org/2001/XMLSchema";>Java 2D Graphics</title>
>          </multiRef>
>          <multiRef id="id2" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns48:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns48="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns49:string" 
> xmlns:ns49="http://www.w3.org/2001/XMLSchema";>Kim Topley</author>
>             <editor xsi:type="ns50:string" 
> xmlns:ns50="http://www.w3.org/2001/XMLSchema";>Robert Eckstein</editor>
>             <price xsi:type="ns51:double" 
> xmlns:ns51="http://www.w3.org/2001/XMLSchema";>29.95</price>
>             <title xsi:type="ns52:string" 
> xmlns:ns52="http://www.w3.org/2001/XMLSchema";>J2ME in a Nutshell</title>
>          </multiRef>
>          <multiRef id="id6" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns53:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns53="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns54:string" 
> xmlns:ns54="http://www.w3.org/2001/XMLSchema";>Hans Bergsten</author>
>             <editor xsi:type="ns55:string" 
> xmlns:ns55="http://www.w3.org/2001/XMLSchema";>Robert Eckstein, Paula 
> Ferguson</editor>
>             <price xsi:type="ns56:double" 
> xmlns:ns56="http://www.w3.org/2001/XMLSchema";>39.95</price>
>             <title xsi:type="ns57:string" 
> xmlns:ns57="http://www.w3.org/2001/XMLSchema";>JavaServer Pages</title>
>          </multiRef>
>          <multiRef id="id5" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xsi:type="ns58:BookInfo" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:ns58="urn:bookService" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
>             <author xsi:type="ns59:string" 
> xmlns:ns59="http://www.w3.org/2001/XMLSchema";>Richard Monson-Haefel</author>
>             <editor xsi:type="ns60:string" 
> xmlns:ns60="http://www.w3.org/2001/XMLSchema";>Mike Loukides</editor>
>             <price xsi:type="ns61:double" 
> xmlns:ns61="http://www.w3.org/2001/XMLSchema";>34.95</price>
>             <title xsi:type="ns62:string" 
> xmlns:ns62="http://www.w3.org/2001/XMLSchema";>Enterprise JavaBeans</title>
>          </multiRef>
>       </soapenv:Body>
>    </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to