IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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

webService to receive and process attachments

  • 1.  webService to receive and process attachments

    Posted Wed March 26, 2014 10:29 AM

    Hello All,

    Is there a way to create a flow service to receive and process soap message having attachment in webMethods?

    Thanking you in advance for your input.

    Regards,
    Lutchumaya


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: webService to receive and process attachments

    Posted Wed March 26, 2014 10:36 AM

    Yes, please review 8.2 (or later) Web Services manual - and check for chapter on MTOM
    Shmuel


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: webService to receive and process attachments

    Posted Thu March 27, 2014 05:59 AM

    Thanks Shmuel.

    I have checked the documentation and i have created a flow service with first step

    pub.soap.utils:getXOPObjectContent
    pub.file:streamToFile
    closing the stream

    Then i created a provider wsdl and loaded it in SOAPUI to test. Calling the provider and attaching a file with content “SAOP attachment”.

    The attachment is saved to a path on the IS server but the data is as such:

    r’|×OvÛÞ÷ãm while i am sending this SAOP attachment.

    Am i doing anything wrong.

    Can anyone please help?

    Kind Regards,
    Lutchumaya


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: webService to receive and process attachments

    Posted Tue April 08, 2014 08:18 AM

    I have been able to implement it and tested it using soap ui. The attachments are saved to the file server and are in correct formats.


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: webService to receive and process attachments

    Posted Tue April 08, 2014 11:48 AM

    Hi Lutchumaya,

    If possible, please upload the package. It will help tech community members :idea:

    Thanks,
    Rankesh


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: webService to receive and process attachments

    Posted Tue April 08, 2014 12:15 PM

    Lutchumaya ,

    What different than the steps you have implemented below?

    pub.soap.utils:getXOPObjectContent
    pub.file:streamToFile
    closing the stream

    Glad to hear the process worked with out having WmMTOM package.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: webService to receive and process attachments

    Posted Tue April 08, 2014 04:20 PM

    Hi Lutchumaya,

    As Rankesh suggested it will be of great help if you can post the package (with some basic details in a .word/.txt) under Code Samples on the SAG Tech Community. :slight_smile:


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: webService to receive and process attachments

    Posted Tue April 08, 2014 05:07 PM

    Yes unless it’s not proprietary and treat as a Utility package. :smiley:


    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: webService to receive and process attachments

    Posted Wed April 09, 2014 06:10 AM

    Hi Everyone,

    I have createa a doc which explains how i have been able to receive multiple attachments and saving it to the IS server.

    Please have a look and let me know your views or if we can enhance it.

    Regards,
    Lutchumaya
    webServicewithAttachments.docx (286 KB)


    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: webService to receive and process attachments

    Posted Wed April 09, 2014 11:47 AM