Commit 17d5936d authored by Märten Heinsalu's avatar Märten Heinsalu
Browse files

Update SoapClient.java

parent af1ddd99
......@@ -46,6 +46,7 @@ public class SoapClient {
DataHandler handler = new DataHandler(new FileDataSource(requestHandler.getDataFile()));
AttachmentPart attachPart = message.createAttachmentPart(handler);
attachPart.setContentId("<" + requestHandler.getDataFile().getName() + ">"); // the brackets are necessary
attachPart.setMimeHeader("Content-Transfer-Encoding", "8bit");
message.addAttachmentPart(attachPart);
message.saveChanges();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment