You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Dominik Kacprzak (JIRA)" <ax...@ws.apache.org> on 2004/11/28 09:13:32 UTC

[jira] Commented: (AXIS-1510) WSDL creates class that extends Object array

     [ http://nagoya.apache.org/jira/browse/AXIS-1510?page=comments#action_55949 ]
     
Dominik Kacprzak commented on AXIS-1510:
----------------------------------------

Will,

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:complexContent>
     <xsd:restriction base="SOAP-ENC:Array">
       <xsd:sequence>
  <xsd:element name="item" type="tns:DocumentDownloadAckStatus"/>
       </xsd:sequence>
       <xsd:attribute name="SOAP-ENC:arrayType" wsdl:arrayType="tns:DocumentDownloadAckStatus[]"/>
     </xsd:restriction>
   </xsd:complexContent>
 </xsd:complexType>

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.

thanks,

 Dominik

> 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