jaxb2
posting xml to a spring REST endpoint is not getting unmarshalled into the relevant Java object
I have a project where xsd are given. I use the xjc compiler to generate the Java classes. And then I annotate the class with XmlRootElement attribute. I have configured the sevlet with the Jaxb2 mars[详细]
2023-02-16 12:51 分类:问答Using Jaxb2Marshaller with multiple classes having same @XmlRootElement name
I am working on a web service using spring-mvc and Jaxb2Marshaller. I have two classes, both annotated with the same @XmlRootElement name[详细]
2023-02-14 08:06 分类:问答What Maven2 plugins are available for JAXB2?
I\'d like to generate Java source code from an XML Schema file using JAXB2 via a Maven2 plugin (as in this blog post).[详细]
2023-02-11 07:08 分类:问答Debugging JAXB issues
I am running into an issue with JAXB 2 when marshaling my objects. I have an XmlJavaTypeAdapter which is working perfectly fine in unit tests, but when I try to marshal the same object graph from a we[详细]
2023-02-10 00:44 分类:问答Configuring collection of polymorphic objects to work in JAXB2
I\'m switching from Castor to JAXB2 to perform marshaling/unmarshaling between XML and Java object. I\'m having problem trying to configure a collection of polymorphic objects.[详细]
2023-02-08 14:25 分类:问答Jaxb 2.0 Schema validation problem
I am working with Jaxb 2.x and was trying to validate XML document with the given XSD using the following tutorial[详细]
2023-02-08 02:47 分类:问答JAXB 2.x : How to override an XmlElement annotation from parent class - Mission Impossible?
Why is this not possible? It seems so simple but it does not behave as expected. Summary: Class A uses an aggregated DataA bean whereas Class B (a subclass of Class A) is using an aggregated DataB be[详细]
2023-02-03 12:28 分类:问答Spring3, JAXB2, Java6, NamespacePrefixMapper questions
I built a simple Spring3, Hibernate3/(JPA2), RESTful service, hosted on Tomcat6, that uses JAXB2 to marshal the results.(It uses annotated pojos.) I needed to use specific namespace prefixes, so I wro[详细]
2023-02-02 18:17 分类:问答spring ws not finding the adaptor when using annotated endpoints
I am using Java 6 and spring-ws to create a very simple web service which receives 2 parameters in the form of a BusquedaRequest Jaxb object and returns the same object.[详细]
2023-01-31 16:25 分类:问答How do you customize how JAXB generates plural method names?
We are using JAXB to generate Java classes and开发者_如何学编程 have encountered a few cases where generated plural method names are not correct. For example, where we expect getPhysicians we are gett[详细]
2023-01-31 11:19 分类:问答