axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Sunley <>
Subject wsdl2java
Date Thu, 01 May 2008 22:21:12 GMT


We are attempting to generate some skeleton code from a wsdl using
wsdl2java. Our schema contains some custom objects which have nested arrays.

For instance we have a course object which has an array of schedules, and we
want the course object in the SOAP message to be structured in the following

     <courseCode />
          <schedule />
          <schedule />

We've specified the course object in the wsdl in the following way:

<xs:complexType name="Course">
          <xs:element minOccurs="0" name="courseCode" nillable="true"
          <xs:element maxOccurs="unbounded" minOccurs="0" name="schedules"
nillable="true" type="ns0:Schedule"/>

The problem is, the resulting soap structured like this:

     <courseCode />
     <schedules />
     <schedules />

Rather then the schedule objects being nested in a <schedules> tag, they are
listed one after another in <schedules/> tags.

I gather I could create a 'wrapper' element for the array, but in the
generated code this  will also create a wrapper object for the array.
Ideally we want the generated code to look like the following:

     String courseCode;
     Schedule[] schedules;


How might I format the wsdl to achieve this?

View this message in context:
Sent from the Axis - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message