File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes axis2 element order sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2 element order sequence" Watch "axis2 element order sequence" New topic

axis2 element order sequence

you leak tan

Joined: Jan 12, 2013
Posts: 1
Hi All,

Need help asap:

For WSDLi using ADB

<xs:complexType name="SubjectSegment">
<xs:element minOccurs="0" name="applicationSegmentId" type="xs:string"/>
<xs:element minOccurs="0" name="subSegAtt" type="tns:SubjectSegmentSubjectSegmentAttrs"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="empSeg" nillable="true" type="tns:SubjectSegmentEmploymentSegment"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="incSeg" nillable="true" type="tns:SubjectSegmentIncomeSegment"/>
<xs:element minOccurs="0" name="relSeg" type="tns:SubjectSegmentRelationshipSegment"/>
<xs:element minOccurs="0" name="reaSeg" type="tns:SubjectSegmentRealSavingsPlanSegment"/>

but the response from sever return as below:

<empSeg />
<incSeg />
<reaSeg />
<relSeg />

How come the order is a to z for element name?
How to make it as below:

<relSeg />
<reaSeg />
<empSeg />
<incSeg />

Very thanks for reply to help

I agree. Here's the link:
subject: axis2 element order sequence
Similar Threads
Axis2 POJO web service - wsdl generating xs:anyType
XML schema fails to load
Apache Axis2 LDAP Authentication
XMLSpy won't work with our AXIS2 WSDL but our system works with it fine
XmlException on calling WSDL2Java