Content Encoding Issue with HTTP4 in Fuse 6.2.0
Issue
- One of our request field contains the special char string like -
<Name>
<FullName>!$'(),-./:;?@\_ˆªº</FullName>
</Name>
-
When ever we are submitting the request to back-end system using HTTP4 it seems the char's are garbage and we are getting error while same request we are trying in the SOAP UI and it's giving us proper response.
-
We tried to set
CHARACTER_ENCODING
in request header value asUTF-8
orUTF-16
orUTF-32
but non of them are working. After that we found one more option with HTTP4 request HeaderCONTENT_ENCODING
but when we added this in blueprint.xml we are getting below error -
org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: .Message on null due to: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: Message on null due to: org.apache.camel.component.bean.MethodNotFoundException: Method with name: Message not found on bean: java.io.EOFException of type: java.io.EOFException. Exchange[Message: <?xml version="1.0" encoding="UTF-16"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fsd="someNamespaces" xmlns:ns="https://redhat.com
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.