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

Send large attachment via HTTP POST in Webmethods

  • 1.  Send large attachment via HTTP POST in Webmethods

    Posted Wed December 02, 2015 08:07 AM

    I need to send an attachment to a customer via http post. I did trying searching this forum for keywords “post attachment”, but didn’t see result I was looking for. It is a very large zip file (.zip) and normally we would have handled this via FTP, but we cannot in this circumstance. We have to do it via http post. I have not sent an attachment via http post before and looking within google, it seems pretty complicated, but the majority of those solutions did not involve webMethods. Has anyone done this before?

    Based on the size of the file (15-20MB), I’m thinking that i would pull up pub.client:http and do the following:

    • method: POST
    • loadAs: stream
    • data/stream: earlier in service, do pub.file:getFile which would get the large zip file, load as stream, then map getFile’s output body/stream to this http data/stream parameter???
    • headers: CONTENT-TYPE = application/oclet-stream
    • headers: FILENAME = BIGtestfile.zip

    Guys, can you tell me if the above looks to be the correct strategy? Am I missing anything? Nothing is ever this simple for me, so I’m thinking there’s something else. Something more to be added to the headers? Content type correct? Any additional advice on this URGENT matter would be greatly appreciated.

    Thanks in advance.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Send large attachment via HTTP POST in Webmethods

    Posted Wed December 02, 2015 01:43 PM


  • 3.  RE: Send large attachment via HTTP POST in Webmethods

    Posted Thu December 03, 2015 10:00 AM

    Resolved. I’ve asked moderators to remove post.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Send large attachment via HTTP POST in Webmethods

    Posted Thu December 03, 2015 12:36 PM

    JoeG,

    Can you please share the resolution if there is any?

    TIA,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 5.  RE: Send large attachment via HTTP POST in Webmethods

    Posted Fri December 04, 2015 03:17 AM

    Joeg, yes please share resolution steps which will be useful for other tech members. Thanks for your efforts on this.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services