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
  • 1.  Setting a Contenttype in a DSP

    Posted Thu May 08, 2003 09:27 PM

    I’m using a DSP to display the output from a flow (IS 4.6), and I would like to add a “Save as Spreadsheet” link to the page. However, I cannot find a way to set the Content-type to something other than the HTML/XML/WML/HDML options specified in the Output Template. Can any of you point me in the right direction?

    TIA


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


  • 2.  RE: Setting a Contenttype in a DSP

    Posted Thu May 08, 2003 09:57 PM

    Create a JSP page with the page directive and set

    contentType=“application/vnd.ms-excel”

    But this would work only in WM 6


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


  • 3.  RE: Setting a Contenttype in a DSP

    Posted Thu May 08, 2003 10:43 PM

    You can use pub.flow:setResponse to set the content type, but you will have to explicitly apply the template to the current pipeline using one of the pub.report services.

    I would recommend that you make a wrapper Flow for your service that just does the pub.report and setResponse calls, so your existing service can be called by other services or Developer.


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