Hi,

I am trying to use attachments with Axis.
Here is the simple code I am trying to run :


SOAPMessage message = (SOAPMessage) MessageFactory.newInstance
().createMessage ();
AttachmentPart part = new AttachmentPart (new DataHandler
("coucou","text/plain"));
call.addAttachmentPart (part);

Here the call is created from a Service, which is working fine.
I get the following exception :

java.lang.RuntimeException: No support for attachments

It seems that the Call.addAttachmentPart doesn't work. Is there any option
to turn on to enable the attachments ? 
Regards,

Stephane.

Reply via email to