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

Content-type: application/zip - Does the IS have a default content-handler for this?

  • 1.  Content-type: application/zip - Does the IS have a default content-handler for this?

    Posted Tue December 28, 2010 03:05 AM

    Folks,

    does the IS have a default content-handler for application/zip content type?

    I have a requirement of reusing the content-handlers that ships with the IS 7.1.
    The service receives the ZIP file over FTP (the IS have a FTP port configured). And the flow service has a save/restorePipeline right at the start of the service, which saves the pipeline content - including the non-serializable stuff - into the memory. And the pipeline has only the contentstream (shown in the “Results” pane as a String variable, containing “wm.server.net.FTPInputStream”).

    Does anyone knows:

    • how to check the available “content-type handlers” in the IS? or
    • how to get this “wm.server.net.FTPInputStream” and pub.io:streamToBytes it?

    Any help is appreciated.

    Best regards


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Content-type: application/zip - Does the IS have a default content-handler for this?

    Posted Tue December 28, 2010 02:47 PM

    how to check the available “content-type handlers” in the IS?

    Click - > settings → resources → Mime Type settings

    how to get this “wm.server.net.FTPInputStream” and pub.io:streamToBytes it?

    Create an object variable “contentstream” in the input of the service and use that to convert to string (stream to string).

    Cheers,
    Akshith


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods