jaxb2 Questions

1

Solved

Is it any way to unmarshalling with @XmlDescriminatorNode/@XmlDescrimintatorValue annotations next XML, or any workaround: <assets> <asset type="full"> <data_file role="source"&gt...
Hardshell asked 24/3, 2013 at 10:25

4

Solved

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...
Teflon asked 11/1, 2011 at 18:32

0

I have a multi-module project in maven which uses JAXB generated sources: parent module A module B (depends on module A) Without JAXB everything compiles fine. When I add the JAXB plugin to m...
Sorus asked 7/3, 2013 at 16:50

2

I'm using <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> to generate Java classes from XSD files. I've added <args>-npa&l...
Bauhaus asked 12/1, 2012 at 14:57

2

I am trying to generate marshalling and unmarshalling objects using maven jaxb2 plugin. But I dont have the .xsd file for the .wsdl. the schema definition is inline. Please let me know how to proce...
Nolen asked 14/1, 2013 at 9:12

3

Solved

I am trying to use Jaxb2Marshaller to marshal a set of java classes using spring. I know this can be done using the following code <bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb....
Knives asked 30/1, 2012 at 17:4

2

Solved

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 getting getPhysici...
Whiffen asked 21/12, 2010 at 17:40

1

Solved

I am receiving XML from a server whose schema specifies nearly every element as: <xs:element name="myStringElementName" type="xs:string" nillable="true" minOccurs="0"/> <xs:element name="...
Golgotha asked 20/9, 2012 at 19:31

1

is there any simple way for unmarshalling Dates to Java Date. for an example suppose we have folowing xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <msg> <type>SCH&...
Groth asked 13/9, 2012 at 5:51

2

Solved

I have a server-client architecture where the client sends an XML to the server who reads it and generates a PDF out of it and sends that back to the client. On the client side: JAXBElement<Xm...
Puisne asked 23/7, 2011 at 10:12

3

Solved

I am Using JAXB for unmarshalling process , for which the request comes from the UI to our service class . The below is the format of XML request . <SampleRequest user="testUser" account="testA...
Unthread asked 10/8, 2012 at 13:41

2

Solved

I have a basic.xsd and two other A.xsd and B.xsd. A.xsd and B.xsd get converted into two different java packages, therefore I need two Maven executions of the same plugin. Both XSDs refer to basic...
Legislatorial asked 8/6, 2012 at 12:33

2

Solved

I have found some examples of JAXB2 @XmlRegistry over the internet but no good in-depth tutorials that talk about the concept of using @XmlRegistry with @XmlElementDecl, wonder if its a concept not...
Manducate asked 18/6, 2012 at 7:54

1

Solved

I have a xml file created using jaxb. I need to validate it against a xsd document. Is it possible to just do validation without unmarshalling. I need to then print the errors in the xml file.
Batchelor asked 8/6, 2012 at 6:58

2

Solved

I have a String property in an object annotated as follows: @XmlElement(name = "Item", required = true, nillable = true) private String item; The result after marshaling is <Item xsi:nil="t...
Jacintojack asked 24/1, 2012 at 12:31

1

Solved

I have a Json response which looks like the following: { "data": [ { "param1": "value1", "param2": "value2", . . . "paramN": "valueN" } ] } I don't know the name and the number of the ...
Bagworm asked 28/2, 2012 at 7:52

1

Solved

The Situation I need to support generating XML documents based on schemas that vary only slightly between each other. Specifically, the schemas that I need to support are based on industry standard...
Lynea asked 23/2, 2012 at 19:20

1

Solved

I am trying a simple JAXB marshaling in my JUit test class and I am using Java 5. I get this error while running the test. javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.X...
Loathe asked 21/2, 2012 at 3:19

3

Solved

I need to use the latest version jaxb: 2.2.4-1, but maven or maven-jaxb2-plugin seems to pick up the one from the JDK. I tried specifying the version like this: <configuration> <specVer...
Edy asked 17/8, 2011 at 14:31

2

Solved

This is what I'm doing: @XmlType(name = "foo") @XmlAccessorType(XmlAccessType.NONE) public final class Foo { @XmlElement(name = "title") public String title() { return "hello, world!"; } } J...
Schrock asked 3/11, 2011 at 12:0

1

I'm currently facing a problem with error codes and messages using Spring WS. We are using Spring WS 2.0 with a JAXB2 binding and the @Endpoint and @PayloadRoot annotations for convenience. Our e...
Exonerate asked 17/11, 2010 at 17:30

1

Solved

I'm trying to define a Jaxb2Marshaller bean in Spring-WS to use a custom adapter that extends XmlAdapter. I have the following in an XML file: <bean id="jaxb2Marshaller" class="org.springframew...
Halide asked 11/10, 2011 at 0:3

1

Solved

Is it possible to handle forward references of XML IDREF elements in JAXB XmlAdapter during the unmarshal process? For example, I have the following XML complexType: <xs:complexType name="perso...
Greatnephew asked 30/9, 2011 at 23:53

1

Solved

I'm wondering if it's possible to annotate my classes so that the first time the marshaller encounters an object, it generates an XML element of the appropriate type, but any subsequent reference t...
Schleicher asked 28/9, 2011 at 17:22

1

Solved

JAXB can't parse the bindings for this example: <xs:element name="classA" type="classA" substitutionGroup="classSubA"/> <xs:complexType name="complexClassA" mixed="true"> <xs:attr...
Zareba asked 27/7, 2011 at 14:20

© 2022 - 2024 — McMap. All rights reserved.