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

INOSXE7144: Server extension function 'string-length' not fo

  • 1.  INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon December 19, 2005 09:16 AM

    Hi,

    I try to execute this query

    string-length(programs/program/period/schedule/hours/@startHour)

    on a tamino 4.2 server and the server respond this:

    INOSXE7144: Server extension function 'string-length' not found

    !!!
    Is there an extension to install manually for this function to work properly?

    Nathaire


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon December 19, 2005 11:20 AM

    Hi,

    please use XQuery (not X-Query), then you have the string-length function


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon December 19, 2005 11:41 AM

    I know that i can use XQuery, but string-length is define for xpath and i would like to know if it is possible to use it with X-Query

    Nathaire


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon December 19, 2005 05:59 PM

    Hello,

    From Tamino’s documentation, the only “String XPATH function” implemented in X-Query is starts-with().

    So it looks like you will have to use XQuery to get string length.

    You could create Tamino Server Extension (called from X-Query) to do the job. The code might be written in Java. But, IMHO, XQuery is the best option.

    Cheers.


    #webMethods
    #API-Management
    #Tamino


  • 5.  RE: INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon January 02, 2006 12:45 PM

    Hi Nathaire,

    no, the string-length() function should work without further trouble in 4.2.
    I don’t know why you get such a strange error. Perhaps you should
    make sure it is the built-in function you refer to and use a prefix, i.e.:

    declare namespace xq = “W3C XQuery 1.0 and XPath 2.0 Functions and Operators
    xq:string-length(…

    I do not know any details about your environment, but the path in brackets,
    i.e. programs/program/period/schedule/hours/@startHour looks strange to
    me. A path should start with a call to the input() or collection() function, or
    with a variable ?

    Regards,
    Juliane.


    #webMethods
    #Tamino
    #API-Management


  • 6.  RE: INOSXE7144: Server extension function 'string-length' not fo

    Posted Mon January 02, 2006 01:02 PM

    Sorry, I am talking about XQuery, if you have to use X-Query
    this is irrelevant to you.


    #Tamino
    #API-Management
    #webMethods