From: <jas...@jb...> - 2005-08-08 15:31:13
|
anonymous wrote : | If there are two ways to bind arrays, there must be one which is the default one. | JAXB2.0 spec says the default is non-wrapped for collections (includes arrays). Also it appears that JAXB can identify the wrapped style (when generating java classes from schema) by naming convention. The spec says the wrapper element should be named the same as the nested elements, and that name should match the property name. I checked the jaxws ea, and it looks like they follow the jaxb specs defaults. Here is a document wrapped service taking 2 arrays: [cpde] <xs:complexType name="echoInts"> <xs:sequence> <xs:element name="arg0" type="xs:int" form="qualified" maxOccurs="unbounded" minOccurs="0"/> <xs:element name="arg1" type="xs:string" form="qualified" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> </xs:complexType> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888929#3888929 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888929 |