[ 
https://issues.apache.org/jira/browse/AXIS-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501754
 ] 

Brian Krispinsky commented on AXIS-2670:
----------------------------------------

Using the '-w' option with WSDL2Java seems to fix this.  Should this option be 
better documented?

> Nested sequences with multiple constraints aren't generating correctly
> ----------------------------------------------------------------------
>
>                 Key: AXIS-2670
>                 URL: https://issues.apache.org/jira/browse/AXIS-2670
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Win XP Pro SP2, Java 1.5.0-08
>            Reporter: Brian Krispinsky
>
> The following xml:
>       <xs:complexType name="LoginRequestType">
>               <xs:sequence>
>                       <xs:element name="system">
>                       <xs:simpleType>
>                               <xs:restriction base="xs:string">
>                                       <xs:length value="10"/>
>                               </xs:restriction>
>                       </xs:simpleType>
>               </xs:element>
>                       <xs:element name="data">
>                               <xs:annotation>
>                               </xs:annotation>
>                               <xs:complexType>
>                                       <xs:sequence>
>                                               <xs:element name="user"  
> minOccurs="0" maxOccurs="unbounded">
>                                                       <xs:complexType>
>                                                               <xs:sequence>
>                                                                       
> <xs:element name="LoginTime" type="xs:dateTime" minOccurs="0" 
> maxOccurs="unbounded"/>
>                                                               </xs:sequence>
>                                                               <xs:attribute 
> name="id" type="xs:string" use="required">
>                                                               </xs:attribute>
>                                                       </xs:complexType>
>                                               </xs:element>
>                                       </xs:sequence>
>                               </xs:complexType>
>                       </xs:element>
>               </xs:sequence>
>       </xs:complexType>
>       <xs:element name="loginRequest" type="LoginRequestType">
>       </xs:element>
> Generates the following, erronious Class when run through WSDL2Java:
> (excerpt)
> public class LoginRequestType  implements java.io.Serializable {
>     private java.lang.String system;
>     private java.util.Calendar[][] data;
>     public LoginRequestType() {
>     }
>     public LoginRequestType(
>            java.lang.String system,
>            java.util.Calendar[][] data) {
>            this.system = system;
>            this.data = data;
>     }
>     public java.lang.String getSystem() {
>         return system;
>     }
>     public void setSystem(java.lang.String system) {
>         this.system = system;
>     }
>     public java.util.Calendar[][] getData() {
>         return data;
>     }
>     public void setData(java.util.Calendar[][] data) {
>         this.data = data;
>     }
> From the xsd, the 'data' element clearly is not a multi-dim array of 
> datetime's.  Also, the 'id' attribute is stripped.  Is there a workaround for 
> this?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to