Questions tagged [spring-oxm]
46 questions
1
vote
0 answers
How to decide the correct package to scan in jaxb2marshaller based on xsd
I am marshalling and unmarshalling using spring jaxb2marshaller. it is working for version 10 except now I have to support two different version (say version 01, and 10) of xsd schema. how to set jaxb2marshaller to scan package based on the xsd…

Ashish
- 14,295
- 21
- 82
- 127
1
vote
0 answers
How to avoid casting to a JAXBElement while making a SOAP webservice call?
I am having a spring boot java application. I am calling a soap web service using spring webservice template . the webservice call always return a JAXBElement. the following is my code snippet.
JAXBElement itemResponse =…

Starbucks Admin
- 585
- 1
- 8
- 21
1
vote
3 answers
how to marshall more than one pojo's in a single xml?
Is it possible to marshall all pojo (of same type) in a single xml using o/x mappers?
like I want to generate the following xml file
1
abc
2
xyz
here…

Nirali Gandhi
- 43
- 3
1
vote
1 answer
Spring JMS - Access to raw message before message conversion
I have used a message converter to convert the XML message from queue to a Java Object and it works fine.
Since my JMSMessageListener get the POJO directly, I would like to know is there any way I can have access to the raw XML which was originally…

lives
- 1,243
- 5
- 25
- 61
1
vote
1 answer
Spring Jaxb2Marshaller not call CharacterEscapeHandler
I tried my best to figure it out, but failed. The Spring Jaxb2Marshaller seem ignored CharacterEscapeHandler ! :-(
Here is my code:

Nha Nguyen
- 81
- 8
1
vote
2 answers
Class nor any of its super class is known to this context
Im trying to understand this particular issue i'm having. Using Spring OXM here to implement a Soap WS Consumer.
I'm only attaching the relevant information to explain the problem.
LoginWsConfiguration,
@Configuration
public class…

nixgadget
- 6,983
- 16
- 70
- 103
1
vote
0 answers
Generate Dynamic Namespace Prefix Using Spring Jaxb2Marshaller
I am using Spring Jaxb2Marshaller to convert java objects to XML and vice versa. I need to set dynamic values for xmlns prefix and value - means, considering the example
xmlns:abc="http://www.example.com"
where prefix as abc
and value as…

faizi
- 1,265
- 2
- 12
- 28
1
vote
1 answer
spring-oxm: Can I unmarshall a subelement of a file?
This is related to my prior question which was more directed towards JAXB in general. But this question is more related specifically to the unmarshaller in spring-oxm. I'm looking to see if I can use the spring-oxm unmarshaller to unmarshal only…

Eric B.
- 23,425
- 50
- 169
- 316
1
vote
1 answer
JAXB: Is there a way to unmarshal only specific paths in an XML?
I have an XSD which defines a hierarchy of several complex types (each one being a child of the other).
Ex:

Eric B.
- 23,425
- 50
- 169
- 316
1
vote
1 answer
extract data from different database tables in spring batch
I'm supposed to extract data from a particular database and put it into an XML file.
But the data can only be obtained by doing multiple select queries to different tables of the database.
Here is my configuration: