permaculture playing cards*
The moose likes Web Services and the fly likes Using Axis2 to send multipart/mixed SOAP messages with attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Using Axis2 to send multipart/mixed SOAP messages with attachments" Watch "Using Axis2 to send multipart/mixed SOAP messages with attachments" New topic
Author

Using Axis2 to send multipart/mixed SOAP messages with attachments

Roby Kappa
Greenhorn

Joined: Oct 28, 2007
Posts: 19
Hi, is there a way to send from an Axis2 client a SOAP message with more than one attachment with mulipart/mixed content type? In this manner, I need to specify a content-ID at attachment top level and content-IDs for each single attachment, as is requested by an external WS I want to call.

Thanks in advance.
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi! Have you looked at this: http://www.theserverside.com/news/1363957/Sending-Attachments-with-SOAP

Looks like it should have what you are looking for.
Roby Kappa
Greenhorn

Joined: Oct 28, 2007
Posts: 19
R Srini wrote:Hi! Have you looked at this: http://www.theserverside.com/news/1363957/Sending-Attachments-with-SOAP

Looks like it should have what you are looking for.


Sorry, but in this article I see only examples about multipart/related attachments, that is quite simple to manage in Axis2 with a few instructions and there are many examples about this. My problem is the creation of a multipart/mixed messages, that probably implies the use of a special messageFormatter or writing a custom one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Axis2 to send multipart/mixed SOAP messages with attachments