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.  load url problem

    Posted 08/17/01 01:08 AM

    Hi
    I have load url problem
    Im using VBScript or JavaScript in ASP Pages
    this code is work
    ---------------------------------------------
    <%
    Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)
    xmlDoc.async = “false”
    xmlDoc.Load(Server.Mappath(“tester.xml”))
    %>
    but this code not work
    ----------------------------------------------
    <%
    Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)
    xmlDoc.async = “false”
    xmlDoc.Load (“http://localhost/tamino/xpack/anketlist?_xql=anket[id=‘1’]”))
    %>
    -----------------------------------------------
    why ?

    Please Hlp…

    Best Regards


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: load url problem

    Posted 08/17/01 01:17 AM

    Hi
    I have load url problem
    Im using VBScript or JavaScript in ASP Pages
    this code is work
    ---------------------------------------------
    <%
    Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)
    xmlDoc.async = false
    xmlDoc.Load(Server.Mappath(“tester.xml”))
    %>
    but this code not work
    ----------------------------------------------
    <%
    Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)
    xmlDoc.async = false
    xmlDoc.Load (“http://localhost/tamino/xpack/anketlist?_xql=anket[id=‘1’]”))
    %>
    -----------------------------------------------
    why ?
    Please Hlp…

    Best Regards


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: load url problem

    Posted 08/17/01 10:49 AM

    What happens if you open a browser (IE5 say), and issue the URL:

    http://localhost/tamino/xpack/anketlist?_xql=anket[id=‘1’]

    Does this work? or is the URL in error? If the URL is in error at least you will be able to tell what the problem is.

    If this URL is correct, then I do not know whats wrong. The MS DOM has a parseError object which you can use to determine the problem. Maybe it is a problem of encoding for example.

    code:
    xmlDoc.Load (“http://localhost/tamino/xpack/anketlist?xql=anket[id=‘1’]”))
    err = xmlDoc.parseError.errorCode


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: load url problem

    Posted 08/28/01 03:53 AM

    Hi,
    If i’m not mistaken, i think the query should be loaded in this manner instead:

    Dim xmlhttp
    Set xmlhttp = server.CreateObject(“Microsoft.XMLHTTP”)
    method = “GET”
    url = http://localhost/tamino/xpack/anketlist?_xql=anket[id=‘1’]

    xmlhttp.open method,url,false
    xmlhttp.setRequestHeader “Content-Type”,“application/x-www-form-urlencoded; charset=UTF-8”
    xmlhttp.send(data)
    .
    .
    .
    xmlDoc.load(xmlhttp.responseXML)

    This should work.

    rgds,
    Ian


    #Tamino
    #API-Management
    #webMethods


  • 5.  RE: load url problem

    Posted 09/25/01 06:47 PM

    Are you sure that the id is not an attribute? I.e. “@id”?


    #API-Management
    #Tamino
    #webMethods