Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

camel-cxf component is encoding(base64) by default

$
0
0
Hi ,

I am consuming the web service using the camel-cxf component. Below is how
the element defined in
wsdl.

<xs:element name="elementA"
ns1:expectedContentTypes="application/octet-stream" type="xs:base64Binary"
xmlns:ns1="http://www.w3.org/2005/05/xmlmime"/>

javaCode:
element A is encoded base64 String
DataHandler dataHandler = new DataHandler(elementA, "text/plain");

I am observing that camel-cxf component is encoding the encoded base64
String in SOAP request. Is this the default behaviour of camel-cxf component
? Is there a way I can stop camel-cxf from encoding as i want to pass in the
encoded Base64.

Any Help in Appreciated

Thanks
Ravi

Viewing all articles
Browse latest Browse all 5648

Trending Articles