[ https://issues.apache.org/jira/browse/CXF-7338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anton Johansson updated CXF-7338: --------------------------------- Description: I'm communicating with a third party provider and I'm using CXF (WebClient), like I always do. But this third party provider has messed up slightly. Even if the contents actually is XML, they return Content-Type text/html;charset=ISO-8859-1. So I would like the possibility to tell my client to treat text/html as application/xml in this specific scenario, maybe using: {code:java} client.map("text/plain", "application/xml").post(data); {code} If there's another solution or workaround that I've missed, please let me know! was: I'm communicating with a third party provider and I'm using CXF (WebClient), like I always do. But this third party provider has messed up slightly. Even if the contents actually is XML, they return Content-Type `text/html;charset=ISO-8859-1`. So I would like the possibility to tell my client to treat text/html as application/xml in this specific scenario (maybe using `client.map("text/plain", "application/xml").post(data);`). If there's another solution or workaround that I've missed, please let me know! > WebClient, map response Content-Type to other types > --------------------------------------------------- > > Key: CXF-7338 > URL: https://issues.apache.org/jira/browse/CXF-7338 > Project: CXF > Issue Type: Wish > Components: JAX-RS > Affects Versions: 3.1.9 > Reporter: Anton Johansson > > I'm communicating with a third party provider and I'm using CXF (WebClient), > like I always do. But this third party provider has messed up slightly. Even > if the contents actually is XML, they return Content-Type > text/html;charset=ISO-8859-1. > So I would like the possibility to tell my client to treat text/html as > application/xml in this specific scenario, maybe using: > {code:java} > client.map("text/plain", "application/xml").post(data); > {code} > If there's another solution or workaround that I've missed, please let me > know! -- This message was sent by Atlassian JIRA (v6.3.15#6346)