WSDL2.0 with faulty generation of nested complex type arrays? (Axis bug?)

nunoachenriques.gmail.com's picture

 Greetings,

This excerpt from WSDL2.0 has a missing critical information of the "type" for each element:
(...)
<xs:complexType name="EntityPersonWithContactType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="digitalAddress" nillable="true"/>
<xs:element minOccurs="0" name="entity" nillable="true"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="phoneNumber" nillable="true"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="postalAddress" nillable="true"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="postalAddressPhoneNumber" nillable="true"/>
</xs:sequence>
</xs:complexType>
(...)
E.g. "phoneNumber" should be typed with "PhoneNumberType" which is[1] a complex type with several fields.
(...)
<xs:element maxOccurs="unbounded" minOccurs="0" name="phoneNumber" type="PhoneNumberType" nillable="true"/>
(...)
 
I've tested the java2wsdl and the result is the same! Is this an Axis bug? or WSO2 WSAS (Carbon)?
 
Thanks for any help on this... Am I doing something wrong?
 
[1] Java:
public class PhoneNumberType {
        private int id;
        private String number;
(...)
public class EntityPersonWithContactType {
        private EntityPersonType entity;
        private DigitalAddress.DigitalAddressType[] digital_address;
        private PhoneNumber.PhoneNumberType[] phone_number;
        private PostalAddress.PostalAddressType[] postal_address;
        private PostalAddress.PostalAddressPhoneNumberType[] postal_address__phone_number;
(...)
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)