You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Javier Gonzalez <ja...@gmail.com> on 2005/09/06 23:25:59 UTC
Attachments not getting through?
I am sending attachments via message web service, like this:
Call call = new Call(url);
call.setReturnQName(new QName("http://www.w3.org/2001/XMLSchema",
"anyType"));
call.setOperationStyle(org.apache.axis.constants.Style.MESSAGE);
call.setClientHandlers(null, new MM7SoapHandler());
call.setRequestMessage(new Message(xml));
MimeMultipartDataSource datasource = new MimeMultipartDataSource(
"contentid", multipart);
DataHandler dh = new DataHandler(datasource);
call.addAttachmentPart(dh);
call.invoke();
However, the call is showing up at the other side with just the xml,
not the attachments.
Any ideas? (axis 1.2.1, bea jrockit 1.5, jboss4, tomcat5)
Thanks in advance,
--
Javier Gonzalez Nicolini