[jboss-user] [JBossWS] - Elements sorted in Ascending order in WSDL

leo5abi do-not-reply at jboss.com
Mon Jun 25 10:02:08 EDT 2007


Hello there,
 new beginner in JBOSSWS. 
I went through the Getting started guide release 5 from JBOSS and developed a Small web service.
Details:
EJB:
I have an entity bean that selects data from a view in HSQLDB with columns as Contract, Newdate, Company (all varchar)
On top of entity bean i have a session bean that i use to access all records in a view (findAll()) using EJB ql.
I have deployed the ejb - works fine

Now i try to develop a webservice to access the VIEW (using the startup guide). Now when i run the wstool the WSDL file i get has elemnts in Ascending order of the name

i.e 
element name="company" nillable="true" type="string"
element name="contract" nillable="true" type="string"
element name="newdate" nillable="true" type="string"

whereas i was expecting it to be in order same as column in the view
element name="contract" nillable="true" type="string"
element name="newdate" nillable="true" type="string"
element name="company" nillable="true" type="string"
deployment of ws goes fine
Now when i run my client and try to print contract, i get company name which mean that data is correct but element name is wrong

Help needed  what should i do to correct my problem so that the data for contract comes under element contract?

/Amit


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057360#4057360

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057360



More information about the jboss-user mailing list