webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

SOAP Attachments using MTOM

  • 1.  SOAP Attachments using MTOM

    Posted Sat June 09, 2018 12:09 PM

    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


    #soa
    #API-Management
    #webMethods


  • 2.  RE: SOAP Attachments using MTOM

    Posted Sat June 09, 2018 07:26 PM

    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


    #webMethods
    #soa
    #API-Management