This commit is contained in:
Arjen Poutsma
2007-11-22 14:56:03 +00:00
parent b3ba4c4426
commit 9a3771712f
3 changed files with 17 additions and 11 deletions

View File

@@ -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);
}

View File

@@ -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";
}

View File

@@ -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>