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.  Return query result without "ino:id"

    Posted Wed January 12, 2005 07:01 PM

    How can I return the query result without the “ino:id” attribute added by the Tamino


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


  • 2.  RE: Return query result without "ino:id"

    Posted Thu January 13, 2005 05:32 AM

    Use XQuery and not X-Query.
    e.g.

    TXMLObjectAccessor accessor = connection.newXMLObjectAccessor( TAccessLocation.newInstance(COLLECTION), TDOMObjectModel.getInstance() );

    TXQuery xquery = new TXQuery(“for $q in input()/Account return $q”);
    TResponse response = accessor.xquery(xquery);

    Vikram Shinde


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


  • 3.  RE: Return query result without "ino:id"

    Posted Thu January 13, 2005 04:54 PM

    thanks. But I am using x-query, which is xpath query.
    Do you know anything about that?


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


  • 4.  RE: Return query result without "ino:id"

    Posted Fri January 14, 2005 06:56 AM

    Yes this is possible with TQuery as well.
    In Tamino version 421 (API version 4.2.1.4) this feature is available. You can set a preference through which ino:id attribute defination can be ignored.
    For Example –

    //Set preference that you don’t want ino:id attributes in TXMLObject
    TPreference preference = TPreference.getInstance();
    preference.setDisableINO(true);

    TQuery query = new TQuery(“/Account”);
    TResponse response = accessor.query(query);

    TXMLObjectIterator iterator = response.getXMLObjectIterator();

    while (iterator.hasNext())
    {
    TXMLObject object = iterator.next();
    Element element = (Element)object.getElement();
    //Note that this element won’t contain any ino:id attribute
    }

    Vikram Shinde


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