On Jun 14, 2014, at 2:40 PM, Ravindra Kondiparthi <[email protected]> wrote:
> I am trying to understand the behaviour of cxf for element > <xs:element name="Payload" > ns1:expectedContentTypes="application/octet-stream" type="xs:base64Binary" > xmlns:ns1="http://www.w3.org/2005/05/xmlmime"/> > > Payload element is unmarshalled to a DataHandlerObject . > > looks like cxf is decoding the base64 encoded message is this the default > behaviour? > Yes. From the application point of view, it’s just a stream of bytes (or byte[] or whatever the DataHandlerObject can deal with) and CXF does whatever is necessary to put that data on the wire. An important note is that if MTOM is turned on, the data would never actually be base64 encoded. A xop element is stuck in the SOAP part and the data is then attached via a mime attachment set to binary and no encoding is needed. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
