From: <jas...@jb...> - 2005-08-08 03:21:25
|
Actually, that example also uses a wrapper element. So the correct serialization would be: <LongArr_1> 1 2 3 </LongArr_1> According to the JAXB spec, this is one of the 2 ways an array in Java can be represented in schema. The other is the way you mention. Also, according to the spec, the element wrapping style is not the default. In order, to use this style you are supposed to mark the field with an @XmlElementWrapper annotation. (See https://jaxb.dev.java.net/nonav/jaxb20-pr/api/javax/xml/bind/annotation/XmlElementWrapper.html) Contrary to the JAXB methodology, WS-I Basic Profile 1.1 demonstrates serialization using element wrappers. I will have to research this further. So far I have not seen any mention in the public review of JAX-WS 2.0 as to how this is configured with the stack. I may need to take a look at the Sun EA release. -Jason View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888829#3888829 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888829 |