This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to pass a string as a attachment, but when I examine what is being sent it looks as if the string is being passed in the Body.
According to weblogic : Certain Java data types, if used as parameters or return values of a method that implements a Web Service operation, are automatically transported as SOAP Attachments (rather than elements in the SOAP body) when going over the wire.
As I understand it this means passing a parameter as a datahandler.
Here is my code snippet
String attachement = attach.getAttachments().toString(); StringDataSource sds = new StringDataSource(attachement,"String","Attachment");