We've this situation where we need to send all the attachments that are linked to Documents, including the byte data, to a SOAP based service.
We have two solutions in order to implement this:
- To send the attachments we could simply convert the byte data to base64 string and send it within the body of the SOAP message. Some of the files are more than 10MB, so this is not the best solution.
- The other solution is to use the MTOM message encoder, to send the attachments in multiple parts.
We have two questions:
- What are the best ways to send multiple attachments through SOAP based requests?
- If we choose to send the attachments using MTOM, how can we implement this?
Thanks in Advance.