Main Problem: An attachment over a SOAP connection doesn't appear to be serializing the attachments.


First Problem: Content type doesn't stay set to what it has been assigned to ("text/plain").
When creating an attachment and setting the content with
AttachmentPart ap;
....
ap.setContent(stringData,"text/plain");
message.addAttachmentPart(ap);

and then reading the content type back when iterating through the AttachmentParts the content type had been set to null.

Reseting the content type to text/plain again seems to work.

Second Problem: The attachments don't appear in the connection monitor.
The SOAPMessage appears in the connection monitor, but the attachments do not, I'm assuming this is because they are not being sent.

Where in the axis source are the attachments serialised, for this method of sending SOAP to an end point?

SOAPMessage response = soapConnection.call(soapMessage, endpoint);


Simon...

Reply via email to