A
A
Alexander Asoskov2018-08-25 20:16:33
Java
Alexander Asoskov, 2018-08-25 20:16:33

Is reactive marshaling xml to java object possible?

I make a request for a certain service that we give me very slowly large xml
I need to start reading and converting some xml elements into java objects through Jaxb without waiting for the full response of the document and perform some operations with them
How can I do this with reactive spring and is it possible ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forspamonly2, 2018-08-26
@forspamonly2

you can try to get the io stream of the response, feed it to the stax parser, and when "some elements" arrive, feed the stream to the jaxb unmarshaller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question