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 retaining order in body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retaining order in body
 
Similar Threads
Change the order of elements in JAXB
XFire WebService generates WSDL elements in Alphabetical order
How to make a paging
doubt with filters
Rendering XML as a response of @RequestMapping