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.  count function returned value

    Posted Fri August 18, 2006 04:47 PM

    Hi all,
    how can i get the returned value of count function in my application?
    I got the nullpointerException at the line

    TResponse tresp=accessor.xquery ("count(for $q in input()/organisation return $q)") ;
    String i=tresp.getQueryContentAsString();

    the variable i has a value"xq:value/"
    I have tested the xquery expression in x-plorer and got the right returned value.
    I have no idea, why it doesn’t work in my application.

    Thanks in advance,

    Chacha


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: count function returned value

    Posted Fri August 18, 2006 05:30 PM

    I can’t account for why you’re not getting a result, unless you have a typo somewhere that doesn’t show up in your example. But you could simplify your query:

    count(input()/organisation)

    Wrapping the input in a FLWOR expression doesn’t accomplish anything here.


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: count function returned value

    Posted Fri August 18, 2006 06:04 PM

    Thank you for your suggestion.
    Here is my code, your simple query returned the same value"xq:value/"


    #Tamino
    #webMethods
    #API-Management


  • 4.  RE: count function returned value

    Posted Tue August 22, 2006 02:35 PM

    This problem is solved with the suggestion from member mj. Thank you very much.
    [url]http://tamino.forums.softwareag.com/viewtopic.php?p=17258#17258[/url]


    #API-Management
    #Tamino
    #webMethods