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
  • 1.  JScript API DOM and X-Metal DOM

    Posted Tue October 15, 2002 03:20 PM

    I use the Tamino JScript API to retrieve XML data from Tamino to X-Metal (Corel product).

    The X-Metal DOM is not compatible with the MSXML DOM used by the Tamino JScript API.

    How can I do to load XML data in a X-Metal DOM ?


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


  • 2.  RE: JScript API DOM and X-Metal DOM

    Posted Tue October 15, 2002 05:32 PM

    The Tamino JScript API makes use of the the Microsoft XMLHTTP control to do all the HTTP (GET, POST) stuff to Tamino and to obtain DOM objects. So to do the same stuff using the XMetal DOM I think you would have to code this yourself by building HTTP URL’s, e.g.:
    to query mydb database for xyz documents in collection abc you issue the URL http://localhost/tamino/mydb/abc?_xql=xyz

    and parse the resulting xml document (check for error etc) as well.


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


  • 3.  RE: JScript API DOM and X-Metal DOM

    Posted Tue October 15, 2002 07:22 PM

    Thank you Stuart for your reply.

    Implementing an XML parser is neither an easy work nor a short time job. But it seems to be the only way to achieve the communication between Tamino and X-Metal.

    I will try this.


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


  • 4.  RE: JScript API DOM and X-Metal DOM

    Posted Wed October 16, 2002 10:27 AM

    You don’t need to implement a DOM parser, all you need to do is to be able to process the response object coming back from Tamino, e.g.:
    - check the response code
    - take off the Tamino specific elements/attributes
    - process sessionkey/sessionid if you are using sessions
    -…

    I am hoping someone has done something along these lines with XMetal DOM with scripting and can provide you with something.


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


  • 5.  RE: JScript API DOM and X-Metal DOM

    Posted Thu October 17, 2002 11:27 AM

    Hello.

    I inserted
    <<<alert(this.REQ.responseXML.xml)>>>
    after string
    <<<this.DOM=this.REQ.responseXML;>>>
    in
    <<<function TaminoResult(queryo,req,noBody)>>>
    and obtain text of response.

    Can you load this text in X-Metal like
    <<<boolValue=xmlDoc.loadXML(XML )>>>?


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


  • 6.  RE: JScript API DOM and X-Metal DOM

    Posted Thu October 17, 2002 01:35 PM

    I find a solution :
    - I write localy the XML document to a file,
    - I open it with X-Metal.

    I think it’s a good way to resolve the problem, since X-Metal is more “comfortable” when dealing with a file-system file.

    I did not try the CBH’s solution, but I think it’s working too.

    Thank you.

    Sollan Ltd.


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