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");