Skip to content

Jaxb2XmlEncoder Support for Custom XML Media Types #26655

Closed
@jiantosca

Description

@jiantosca

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.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions