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.  getDocument .... ino:response

    Posted Tue December 14, 2004 09:35 PM

    Hi,

    i make a xquery and the result is :


    <?xml version="1.0" encoding="UTF-8"?>
    <ino:response
    xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)”>
    <xq:query xmlns:xq=“http://namespaces.softwareag.com/tamino/XQuery/result”></xq:query>
    <ino:message ino:returnvalue=“0”>
    ino:messagelineXQuery Request processing</ino:messageline>
    </ino:message>
    <xq:result xmlns:xq=“http://namespaces.softwareag.com/tamino/XQuery/result”>

    <Dvd_film>1</Dvd_film>
    1
    Francais
    <Sous_titre>Espagnol</Sous_titre>
    <Remarque_dvd></Remarque_dvd>
    non

    </xq:result>
    <ino:message ino:returnvalue=“0”>
    ino:messagelineXQuery Request processed</ino:messageline>
    </ino:message>
    </ino:response>


    how can i get just this :


    <Dvd_film>1</Dvd_film>
    1
    Francais
    <Sous_titre>Espagnol</Sous_titre>
    <Remarque_dvd></Remarque_dvd>
    non




    Thanks !!!


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


  • 2.  RE: getDocument .... ino:response

    Posted Wed December 15, 2004 11:07 AM

    If you have Tamino 4.2 then something along the lines of the following should produce what you want.

    {?serialization method='xml'?} xquery expression</pre><BR><BR>or<BR><BR><pre class="ip-ubbcode-code-pre">{?serialization method='xml'?} <result>{xquery expression}</result>



    for multi element results.


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


  • 3.  RE: getDocument .... ino:response

    Posted Wed December 15, 2004 02:40 PM

    i have the version 4.1.4 …

    and i don’t understand how … you must include this in the return of the xquery ???

    i have TResponse resp = accessor.xuery(query) ;


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


  • 4.  RE: getDocument .... ino:response

    Posted Thu December 16, 2004 07:54 AM

    I don’t think serialization was available in Tamino 4.1.

    In your code snippet you would have:

     query = "{?serialization method='xml'?} <result>{input()/ABC}</result>"; 



    You just prefix the XQuery expression with the serialization request.


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