SOAP Attachments using MTOM

Hi,

I’m trying to implement a SOAP Web Service provider to receive Attachments (can be of any type like .txt / .pdf / .docx etc.).

I’ve made the MTOM streaming enabled setting to true on the IS extended settings and left the rest of the IS MTOM settings to defaults. As well, on the designer, I’ve set Attachments field to true for the WSD and made Pre 8.2 compatibility to false.

In the code I invoked the getXOPObjectContent service (and getAs = stream), when I try to write this stream to a file, I’m getting, Missing stream error. Whereas, When I use getAs = bytes, I’m able to see something in the pipeline, but it is writing some corrupted content to file.

Any suggestions on how can I make it work?

Thanks
SS

Never mind! I got this. The client has to enable the MTOM streaming too. (For my case, I did it in my client, SOAP UI).

Thanks
SS