// preprocess only if neccessary
if (wsdlRequest.isMtomEnabled() || wsdlRequest.isInlineFilesEnabled() || wsdlRequest.getAttachmentCount() > 0) {
try {
mp = new MimeMultipart();
MessageXmlObject requestXmlObject = new MessageXmlObject(wsdlRequest.getOperation(), requestContent, true);
MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
for (MessageXmlPart requestPart : requestParts) {
if (AttachmentUtils.prepareMessagePart(wsdlRequest, mp, requestPart, contentIds)) {
isXOP = true;
}
}
requestContent = requestXmlObject.getMessageContent();
} catch (Throwable e) {
SoapUI.log.warn("Failed to process inline/MTOM attachments; " + e);
}
}