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
Expand all | Collapse all

XQuery - update query on ino:docname

  • 1.  XQuery - update query on ino:docname

    Posted Fri December 08, 2006 01:42 PM

    Hello!

    I want to modify the ino:docname attribute of an xml resource.
    I was thinking using the updating capabilities of XQuery. Unfortunaly it seems the ino:id and ino:docname attributes are not returned by XQuery (in X-Query is possible). There is the tf:getDocname() function but it only returns the value.

    If any one knows how to write such a query…

    Thanks!


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


  • 2.  RE: XQuery - update query on ino:docname

    Posted Wed January 10, 2007 06:29 PM

    Hi,

    Unfortunately Tamino does not provide any possibility to modify the docname via an XQuery expression. But you can do that via a process update. For example assuming that you want to change the name of the document with ino:id = 1. By loading the document content with the following wrapping you rename the document to “a.xml”.

    <?xml version="1.0" encoding="UTF-8"?>

    <ino:request xmlns:ino=“http://namespaces.softwareag.com/tamino/response2”>
    <ino:object ino:docname=“a.xml” ino:id=“1”>

    </ino:object>
    </ino:request>

    Best Regards,

    Thorsten


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


  • 3.  RE: XQuery - update query on ino:docname

    Posted Wed January 24, 2007 12:01 PM

    Thank you!

    I was hopping for an XQuery way but this is good too(makes an overhead in communication because I send again the document, but is not an action to perform often)


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