MessageContext messageContext) throws AxisFault {
try {
// TODO: this will be changed later (see AXIS2-5308)
messageContext.setAttachmentMap(attachments);
SOAPModelBuilder builder = OMXMLBuilderFactory.createSOAPModelBuilder(attachments);
OMDocument document = builder.getDocument();
String charsetEncoding = document.getCharsetEncoding();
if (charsetEncoding == null) {
charsetEncoding = MessageContext.UTF_8;
}
messageContext.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING,