SOA Tips-As much as possible, avoid using Base64 Encoded/Raw bytes in the message Body26 Apr 2007
At times an XML could contain characters or declarations that are not supported by SOAP or the runtime - examples are, DTD declarations, binary data, locale specific character encoding, etc. In such cases you may have to use Base64 encoding of the raw bytes into the message payload. You have to be aware of the fact that base64 encoding will increase the amount of processing required before transmitting an XML document and again before parsing it at the receiving end. This means once a message is encoded, the recipient must decode the entire message in order to work with any part of it. You just have to also be aware of the fact that both parties need to know out of band what the data is for this approach to work. Another disadvantage is Base64 encoding will increase the message size significantly.