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 "David Wong (JIRA)" <ax...@ws.apache.org> on 2005/10/20 00:30:46 UTC

[jira] Updated: (AXIS-2259) wsdl2java generate objects that do not marshall into validate XML.

     [ http://issues.apache.org/jira/browse/AXIS-2259?page=all ]

David Wong updated AXIS-2259:
-----------------------------

    Attachment: test.wsdl
                axisGenWSDL2Java.jar

Here are the WSDL file and generated classes.

> wsdl2java generate objects that do not marshall into validate XML.
> ------------------------------------------------------------------
>
>          Key: AXIS-2259
>          URL: http://issues.apache.org/jira/browse/AXIS-2259
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>  Environment: xp, jdk 1.3, axis 1.3 final
>     Reporter: David Wong
>     Priority: Critical
>  Attachments: axisGenWSDL2Java.jar, test.wsdl
>
> Using this schema in my WSDL:
>          <xsd:element name="GetApplicationZipResponse">
>             <xsd:complexType>
>                <xsd:sequence>
>                   <xsd:element ref="agis:Manifest"/>
>                </xsd:sequence>
>             </xsd:complexType>
>          </xsd:element>
>          <xsd:element name="Manifest">
>             <xsd:complexType>
>                <xsd:sequence>
>                   <xsd:element name="item" type="agis:itemType" minOccurs="1" maxOccurs="unbounded"/>
>                </xsd:sequence>
>             </xsd:complexType>
>          </xsd:element>
>          <xsd:complexType name="itemType">
>             <xsd:sequence>
>                <xsd:element name="Purpose" type="xsd:string"/>
>                <xsd:element name="FileName" type="xsd:string"/>
>                <xsd:element name="MimeType" type="xsd:string"/>
>                <xsd:element name="FileLocation">
>                   <xsd:complexType>
>                      <xsd:attribute name="href" type="xsd:anyURI"/>
>                   </xsd:complexType>
>                </xsd:element>
>             </xsd:sequence>
>          </xsd:complexType>
> I expect this XML structure:
> <agis:GetApplicationZipResponse>
>    <agis:Manifest>
>       <agis:item>
>          <agis:Purpose>String</agis:Purpose>
>          <agis:FileName>String</agis:FileName>
>          <agis:MimeType>String</agis:MimeType>
>          <agis:FileLocation agis:href="http://www.axis.com"/>
>       </agis:item>
>    </agis:Manifest>
> </agis:GetApplicationZipResponse>
> However, I am getting the following XML instance instead:
> <agis:GetApplicationZipResponse>
>    <agis:Manifest>
>          <agis:Purpose>String</agis:Purpose>
>          <agis:FileName>String</agis:FileName>
>          <agis:MimeType>String</agis:MimeType>
>          <agis:FileLocation agis:href="http://www.axis.com"/>
>    </agis:Manifest>
> </agis:GetApplicationZipResponse>
> It is missing the <item> tag.
> The generated GetApplicationZipResponse.java class has this member: private ItemType[] manifest  
> It seemed to have skipped over the <item> class.

-- 
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