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.  http web file retrieval

    Posted 04/29/03 02:33 PM

    I need to retrieve files from my customers using http. I can logon the site and get to the download page but do not know how to force the download to work. I get the file name returned in the "content disposition


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


  • 2.  RE: http web file retrieval

    Posted 04/29/03 02:53 PM

    I have not tried it, but I think you can do it using pub.client.http service. I would be similar to URLConnection in Java programming.
    Good Luck


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


  • 3.  RE: http web file retrieval

    Posted 04/29/03 03:08 PM

    I am using this service but I cant find where the file is or if it is being returned like an ie issue of the same command when you get the save as screen.


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


  • 4.  RE: http web file retrieval

    Posted 04/29/03 03:25 PM

    According to documentation the output file will be in the output parameter “Body” in form of byte or stream (depending on the loadAs value.


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


  • 5.  RE: http web file retrieval

    Posted 04/29/03 03:47 PM

    Try using loadDocument to get the file from web.


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


  • 6.  RE: http web file retrieval

    Posted 04/30/03 09:52 AM

    Note that loadAsDocument is for XML or HTML files. If you have a different contentType use pub.client:http. See the Built-In Services Manual for details.

    If it is a large file, I would get it back as a stream and write it out to disk before processing it.


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


  • 7.  RE: http web file retrieval

    Posted 05/08/03 06:53 PM

    I am doing something similar. Getting the file using pub.client:http. These files (can be a .doc, .xls, .pdf or .rtf) are coming back in a MIME envelope, so I am parsing the body out using webMethods services and writing it to a file system using ByteArrayInputStream and FileOutputStream.


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