axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Krumpus (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1510) WSDL creates class that extends Object array
Date Mon, 29 Nov 2004 15:31:52 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1510?page=comments#action_55976 ]
     
Michael Krumpus commented on AXIS-1510:
---------------------------------------


I agree that the Amazon schema definition is wrong because it uses "name" rather than "ref"
to declare the attribute.  But our schema correctly references the arrayType and the problem
still exists.  Here is an example of a type definition that fails to generate valid code for
the reasons described eariler.  Note the correct declaration of the array.


<xs:complexType name="ArrayOfEmployers_Type">
	<xs:complexContent>
		<xs:restriction base="enc:Array">
			<xs:sequence>
				<xs:element name="employer" type="Employer_Type" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute ref="enc:arrayType" wsdl:arrayType="Employer_Type[]"/>
		</xs:restriction>
	</xs:complexContent>
</xs:complexType>




> WSDL creates class that extends Object array
> --------------------------------------------
>
>          Key: AXIS-1510
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1510
>      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:
> http://sellercentral.amazon.com/help/merchant_documents/Programs/Merchants-API-Integration-1.3.wsdl
> I get the following:
> public class DocumentDownloadAckStatusArray  extends java.lang.Object[]  implements java.io.Serializable
{
> ...
> }
> 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:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message