Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jaxb2XmlEncoder Support for Custom XML Media Types #26655

Closed
jiantosca opened this issue Mar 9, 2021 · 1 comment
Closed

Jaxb2XmlEncoder Support for Custom XML Media Types #26655

jiantosca opened this issue Mar 9, 2021 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@jiantosca
Copy link

I'm trying to use WebClient with custom media types and found that the Jaxb2XmlEncoder only supports application/xml and text/xml media. Is it possible to have it support "*+xml", and/or have a way to customize the types it supports?

Jaxb2XmlDecoder supports "*+xml" and also exposes a constructor where we can provide our own media types, but for some reason the Encoder doesn't.

Thanks for having a look.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 9, 2021
@rstoyanchev rstoyanchev self-assigned this Mar 10, 2021
@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Mar 10, 2021
@rstoyanchev rstoyanchev added this to the 5.3.5 milestone Mar 10, 2021
@rstoyanchev
Copy link
Contributor

I think it is just missing. By comparison, AbstractXmlHttpMessageConverter has application/*+xml.

@rstoyanchev rstoyanchev changed the title Jaxb2XmlEncoder & custom xml media types Jaxb2XmlEncoder Support for Custom XML Media Types Mar 10, 2021
This was referenced Mar 16, 2021
This was referenced Mar 17, 2021
lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this issue Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants