This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes retaining order in body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "retaining order in body" Watch "retaining order in body" New topic
Author

retaining order in body

Jane Cecilia
Greenhorn

Joined: Nov 08, 2004
Posts: 6
Hi,

I am using axis 1.4, and I have the JavaBean in which the propOrder is given as {"filter","includeLists","fields","pageNumber"}, I tested with JAXB, and the xml output after setting the parameters preserves the order, but when invoking the stub, the handler output the xmlelements displayed shows aplhabetical order
that is....fields is the first tag in the soapBody, then filter, includeLists, and pageNumber, I do not know as to how to retain the order, since the webservice requires the order specified as in propOrder....kindly help....

Note: The JavaBean uses BeanSerializerFactory, and the beandeserializer

I am new to consuming webservice, and also coding a webservice...

Thanks,
Cecilia
Jane Cecilia
Greenhorn

Joined: Nov 08, 2004
Posts: 6
Hi,

More observation the JavaBean itself stores the property values in alphabetical order, this is what is making the properties being retrieved from the JavaBean object in a similair fashion, and the soap request is formed. How to disable this....?

Regards,
Cecilia

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: retaining order in body
 
Similar Threads
doubt with filters
XFire WebService generates WSDL elements in Alphabetical order
Rendering XML as a response of @RequestMapping
How to make a paging
Change the order of elements in JAXB