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

Display Non-XML Data (PDF) Using ASP

  • 1.  Display Non-XML Data (PDF) Using ASP

    Posted Fri July 12, 2002 12:53 AM

    I have some PDF files in Tamino that I want to display to the user, but I don’t want to give the users a direct link to my database. Is there a way I can do this with ASP? I tried the following but it didn’t work.

    <%
    with response
    .ContentType = “application/pdf”
    .BinaryWrite(“http://localhost/tamino/rptdatabase/rptcollection/pdf/heather.pdf” )
    .End
    end with
    %>
    - nor did -

    <%
    with response
    .ContentType = “application/pdf”
    .write(http://localhost/tamino/reportsonline/ExposureReports/PDFExposureReports/heather.pdf)
    .End
    end with
    %>

    Thanks in advance for any help.
    Heather


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: Display Non-XML Data (PDF) Using ASP

    Posted Tue July 16, 2002 05:10 PM

    Just in case anyone else ever needs this, here is one way to display the non-XML files.

    <%
    dim wrapper

    set wrapper = CreateObject(“Msxml2.ServerXMLHTTP.4.0”)

    wrapper.open “GET”, “http://localhost/tamino/database/collection/schema/heather.pdf",false,“myusername”,"mypassword

    wrapper.send
    Response.ContentType = “application/pdf”
    Response.BinaryWrite wrapper.responseBody
    set wrapper = nothing
    %>


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management