Hi, I'm trying to use XmlBeans as a marshaller/unmarshaller for Spring's RestTemplate for an XML document that does not specify an XSD in its header. I constructed the XSD and used the XmlBeans Maven task the generate code from it, but I'm not sure how to tell XmlBeans what classes to unmarshall the document to.
I found an example using JAXB2 to accomplish the same objective (reading twitter web services from a manually created XSD): http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/ The Jaxb2Marshaller has a "classesToBeBound" property: <bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> <property name="classesToBeBound"> <list> <value>twitter.model.Statuses</value> </list> </property> </bean> I did not see anything similar in the XmlBeansMarshaller (unless there is a way to specify class mappings in an XmlOptions object.) Does anyone have experience with Spring's XmlBeansMarshaller (http://static.springsource.org/spring/docs/3.0.0.RELEASE/javadoc-api/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.html) that might be able to point me in the right direction? Thanks Steve --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: user-h...@xmlbeans.apache.org