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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  upload file using http put methods

    Posted 07/08/16 06:55 PM

    Hi,

    I want to upload a file to https URL using put method. I tried creating mime and getting 403 forbidden response.

    when tested to upload file using POSTMAN app, I’m able to upload file to target http server. but from webMethods pub.client.http service I’m unable to implement. Followed below steps.

    1. create Mimedata
    2. get file as stream
    3. add body to mimedata
    4. generated envelope stream.
    5. used Put method to upload file. mapped envelope stream to data/mimestream.

    Am I missing any step? Please help.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: upload file using http put methods

    Posted 09/13/16 04:28 PM

    I have found that the mime creation tools in web methods do not account for the need to include the boundary attribute in the http header when posting a mime message. To get around this, I take the envelopeStream created and convert it to bytes. Take the bytes and convert to string to get the boundary info, then apply the boundary manually to the http post header content-type.

    on a guide to build the mime message correctly look under delivered wm samples: 20150305113048111_000_WmSamples - sample.mime:build_MultipartMIME

    hope this helps.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: upload file using http put methods

    Posted 10/10/16 07:20 AM

    R u getting any errors and share your flow in html format? This will help u to assist.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods