Ok, a possible reason is that the BeanSerializer is agnostic of the type declaration 
in the wsdl. It uses java relection to get the bean attributes.

You may want to include a type mapping that specifies the order of elements in 
ws4ee-deployment.xml

Like this:


  |   <typeMapping
  |     qname='ns1:JavaBean' xmlns:ns1='http://marshalltestservice.org/types'
  |     
type='java:com.sun.ts.tests.jaxrpc.ee.wsi.document.literal.marshalltest.JavaBean'
  |     serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory'
  |     
deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory'
  |     encodingStyle=''>
  |     <typeDesc xmlType='ns1:JavaBean'>
  |       <elementOrder>
  |         <element name="myBigDecimal"/>
  |         <element name="myDouble" />
  |         <element name="myLong" />
  |         <element name="myJavaBean" />
  |         <element name="myShort" />
  |         <element name="myInt" />
  |         <element name="myCalendar"/>
  |         <element name="myByte" />
  |         <element name="myBoolean" />
  |         <element name="myString" />
  |         <element name="myBigInteger" />
  |         <element name="myFloat" />
  |       </elementOrder>
  |     </typeDesc>
  |   </typeMapping>
  | 

You could also try to change the order of properties in your Status object. I'm not 
sure what the ordering rules of the java reflection package is.

I'll put the order example up on the wiki.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to