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

VB Samples? Read from Tamino

  • 1.  VB Samples? Read from Tamino

    Posted Thu March 21, 2002 12:17 AM

    Does anyone have any VB or VB script examples or reading data from tamino?

    I have .aspx pages that allow only one language so I want to avoid having to use the Javascript examples.

    Thanks,
    Knute Hestness :confused:


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: VB Samples? Read from Tamino

    Posted Thu March 21, 2002 02:23 AM

    I figured it out here is the code that I am using to call a tamino record from ASP.NET using VB:

    code:

    <%
    dim query as String
    dim dom
    dim tamino as object
    tamino = Server.CreateObject(“TAMINOX.TaminoX1”)
    tamino.Initialize()
    tamino.csDatabaseURL(“http://131.191.130.128/tamino/dev/permits”)
    query = “/permit[@caseNumber='” & caseNumber &“']”
    dom = tamino.doQuery(query)
    dim permitDetail = dom.getElementsByTagName(“detail”)

    ’ Write the table header
    Response.Write(“<table width=‘744’ border=‘0’ cellpadding=‘2’ cellspacing=‘0’”)
    Response.Write(“ Case Number “& caseNumber &””)
    dim i as integer
    dim numNodes as Integer = permitDetail.length

    Do While i < numNodes
    Response.Write (“”)
    Response.Write (permitDetail.item(i).getAttribute(“description”))
    Response.Write (" : “)
    Response.Write (permitDetail.item(i).text)
    Response.Write (”“)
    i = i + 1
    Loop

    ’ Write the table footer.
    Response.Write(”")
    %>


    Hopefully that will help other people who are doing similar tasks…

    Knute :cool:


    #API-Management
    #webMethods
    #Tamino