Media type text/xml
not working with REST Client Reactive
#25884
Labels
Milestone
text/xml
not working with REST Client Reactive
#25884
Describe the bug
I tried updating our project to use the REST Client Reactive from RESTEasy Reactive, however I can't get it to work with one of our REST Clients that uses
text/xml
. It does work fine for others that use JSON for example.Expected behavior
The XML in the body of the response gets successfully processed with both media type
text/xml
andapplication/xml
.Actual behavior
The REST client fails with an exception when using
text/xml
It does work fine when you create an endpoint that uses
application/xml
or when you switch back to the REST Client from RESTEasy Classic with JAXB.How to Reproduce?
Based on the tests I found here: https://github.com/quarkusio/quarkus/blob/main/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/test/java/io/quarkus/rest/client/reactive/jaxb/test/SimpleJaxbTest.java
I made a small reproducer:
Extensions used:
Reproducer: Archive.zip
Output of
uname -a
orver
Output of
java -version
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional information
Did I miss any documentation here? Or is there something else needed to make this work?
The text was updated successfully, but these errors were encountered: