SWS-225
This commit is contained in:
@@ -195,6 +195,7 @@ public class SaajSoapMessage extends AbstractSoapMessage {
|
||||
Assert.notNull(dataHandler, "dataHandler must not be null");
|
||||
AttachmentPart saajAttachment = getImplementation().addAttachmentPart(getSaajMessage(), dataHandler);
|
||||
saajAttachment.setContentId(contentId);
|
||||
saajAttachment.setMimeHeader(TransportConstants.HEADER_CONTENT_TRANSFER_ENCODING, "binary");
|
||||
return new SaajAttachment(saajAttachment);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,13 +27,15 @@ public interface TransportConstants {
|
||||
/** The "Content-Id" header. */
|
||||
String HEADER_CONTENT_ID = "Content-Id";
|
||||
|
||||
/** The "Content-Type" header. */
|
||||
String HEADER_CONTENT_TYPE = "Content-Type";
|
||||
|
||||
/** The "Content-Length" header. */
|
||||
String HEADER_CONTENT_LENGTH = "Content-Length";
|
||||
|
||||
/** The "Content-Transfer-Encoding" header. */
|
||||
String HEADER_CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
|
||||
|
||||
/** The "Content-Type" header. */
|
||||
String HEADER_CONTENT_TYPE = "Content-Type";
|
||||
|
||||
/** The "SOAPAction" header. */
|
||||
String HEADER_SOAP_ACTION = "SOAPAction";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user