public static List<HttpAttachmentPart> extractAttachmentParts( WsdlOperation operation, String messageContent,
boolean addAnonymous, boolean isResponse, boolean forceMtom )
{
List<HttpAttachmentPart> result = new ArrayList<HttpAttachmentPart>();
PartsConfig messageParts = isResponse ? operation.getConfig().getResponseParts() : operation.getConfig()
.getRequestParts();
if( messageParts != null )
{
for( Part part : messageParts.getPartList() )
{
HttpAttachmentPart attachmentPart = new HttpAttachmentPart( part.getName(), part.getContentTypeList() );
attachmentPart.setType( Attachment.AttachmentType.MIME );
result.add( attachmentPart );
}