Hi there

I am having the following schema definition.

       <xs:element name="myResponse">
          <xs:complexType>
            <xs:sequence>
               <xs:element name="return" minOccurs="0" nillable="true" type
="myCodeResponse"/>
            </xs:sequence>
          </xs:complexType>
       </xs:element>
       <xs:complexType name="MyCodeResponse">
          <xs:complexContent>
            <xs:extension base="ServiceResponse">
               <xs:sequence>
                  <xs:element maxOccurs="unbounded" minOccurs="0"  nillable
="true" name="worker" type="Worker"/>
                  <xs:element maxOccurs="unbounded"  minOccurs="0"
nillable="true" name="manager" type="Manager"/>
               </xs:sequence>
            </xs:extension>
          </xs:complexContent>
       </xs:complexType>

But when it undergoes marshalling where the Java class has both Manager and
Worker details, the output xml has only Worker details and ignores the
Manager details.
Looks like only the first in the order is being picked up cos if I put
Manager as the first element, Manager details come across but not Worker
details

Am I using the xs:sequence correctly?

thanks
Sarathi
This email is confidential and should not be used by anyone who is not
the original intended recipient. Prudential cannot accept liability
for statements made which are clearly the sender's own and not made
on behalf of the Prudential. In addition, no statement should be
construed as giving investment advice within or outside the United
Kingdom

Prudential plc, incorporated and registered in England and Wales.
Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
Registered number 1397169. Prudential plc is a holding company,
subsidiaries of which are authorised and regulated by the Financial
Services Authority (FSA)

'Prudential' is a trading name of The Prudential Assurance Company
Limited, which is incorporated and registered in England and Wales.
Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
Registered number 15454. Authorised and regulated by the Financial
Services Authority. 'Prudential' is also used by other companies within
the Prudential Group, which between them provide a range of financial
products including life assurance, pensions, savings and investment
products

'Prudential' is also a trading name of Prudential Distribution Limited, 
which is incorporated and registered in Scotland.  Registered Office at 
Craigforth, Stirling, FK9 4UE.  Registered number SC212640. Authorised 
and regulated by the Financial Services Authority.

A list of other Prudential companies together with their registered
statutory details can be found in 'About Prudential' on 
http://www.prudential.co.uk

An email reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.

Reply via email to