File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2 element order sequence" Watch "axis2 element order sequence" New topic
Author

axis2 element order sequence

you leak tan
Greenhorn

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

Need help asap:

For WSDLi using ADB

<xs:complexType name="SubjectSegment">
<xs:sequence>
<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"/>
</xs:sequence>
</xs:complexType>


but the response from sever return as below:


<return>
<applicationSegmentId/>
<empSeg />
<incSeg />
<reaSeg />
<relSeg />
<subSegAtt>
</return>


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

<return>
<applicationSegmentId/>
<subSegAtt>
<relSeg />
<reaSeg />
<empSeg />
<incSeg />
</return>


Very thanks for reply to help

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: axis2 element order sequence