aspose file tools*
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 Java 8 in Action this week in the Java 8 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

It is sorta covered in the JavaRanch Style Guide.
subject: axis2 element order sequence
Similar Threads
XMLSpy won't work with our AXIS2 WSDL but our system works with it fine
Axis2 POJO web service - wsdl generating xs:anyType
XML schema fails to load
Apache Axis2 LDAP Authentication
XmlException on calling WSDL2Java