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">...
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...
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...
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....
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...
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="...
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&...
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...
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
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 ...
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...
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...
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.