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";
|
||||
|
||||
}
|
||||
|
||||
@@ -41,13 +41,6 @@
|
||||
<url>http://download.java.net/maven/1/</url>
|
||||
<layout>legacy</layout>
|
||||
</repository>
|
||||
<!--
|
||||
<repository>
|
||||
<id>spring-milestone</id>
|
||||
<name>Springframework Maven Milestone Repository</name>
|
||||
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
|
||||
</repository>
|
||||
-->
|
||||
</repositories>
|
||||
<build>
|
||||
<extensions>
|
||||
@@ -557,6 +550,16 @@
|
||||
<artifactId>xmlsec</artifactId>
|
||||
<version>2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xml-security</groupId>
|
||||
<artifactId>xmlsec</artifactId>
|
||||
<version>1.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>wss4j</groupId>
|
||||
<artifactId>wss4j</artifactId>
|
||||
<version>1.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.acegisecurity</groupId>
|
||||
<artifactId>acegi-security</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user