axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Kacprzak (JIRA)" <>
Subject [jira] Commented: (AXIS-1510) WSDL creates class that extends Object array
Date Sun, 28 Nov 2004 08:13:32 GMT
     [ ]
Dominik Kacprzak commented on AXIS-1510:


I believe the issue that you reported is a result of incorrect wsdl published by Amazon. 
I run Amazon's wsdl through my XMl editor and got quite a few errors.  The issue that you
reported was caused by an incorrect definition of DocumentDownloadAckStatusArray:

 <xsd:complexType name="DocumentDownloadAckStatusArray">
     <xsd:restriction base="SOAP-ENC:Array">
  <xsd:element name="item" type="tns:DocumentDownloadAckStatus"/>
       <xsd:attribute name="SOAP-ENC:arrayType" wsdl:arrayType="tns:DocumentDownloadAckStatus[]"/>

The correct way to define xsd:attribute is:

 <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:DocumentDownloadAckStatus[]"/>

Please take a look at Amazon's wsdl and let us know if you agree with my conclusion.

Michael, please post a wsdl that you are experiencing problems with.



> WSDL creates class that extends Object array
> --------------------------------------------
>          Key: AXIS-1510
>          URL:
>      Project: Axis
>         Type: Bug
>  Environment: Windows XP Professional, Java 1.4.2_05, 1.2 Beta2 
>     Reporter: Will Sargent

> When I use the beta2 release's version of WSDL2Java with Amazon's WSDL file:
> I get the following:
> public class DocumentDownloadAckStatusArray  extends java.lang.Object[]  implements
> ...
> }
> Since arrays cannot be extended, this code does not compile.
> Incidentally, if you type the text "Object[]" into the header or try searching for it,
you can break Jira.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message