Jun 30th, 2012, 09:19 AM
Spring-WS with SOAP with attachements or MTOM
I have a Spring-WS web service where i would like to be able to send back binary data to the client. My intention is to format the SOAP response to either use MTOM or Soap with attachements.
I have already setup the Spring-WS environment and can send and receive requests. I am however struggling to setup the Binary attachement response.
Which is the recommended approach for returning binary data to the client? SOAP with attachements, MTOM or just simply return the base64encoded data as an xml tag?
Are there any examples that shows how to configure Spring-WS to return Binary attachments using either of the two methods?