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

Namespace prefix undefined

  • 1.  Namespace prefix undefined

    Posted Tue April 29, 2003 11:14 AM

    I have a problem with x-query and xquery.
    With x-query i do /tns:presence and i get my document, but when i try with xquery (input()/tns:presence) i get this inomsg
    <ino:message ino:returnvalue=“6354”>
    <ino:messagetext ino:code=“INOXQE6354”>Namespace prefix undefined:</ino:messagetext>
    ino:messagelineNamespace Prefix undefined: tns</ino:messageline>

    BRGS
    @nto
    </ino:message>


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Namespace prefix undefined

    Posted Tue April 29, 2003 06:13 PM

    Hello @nto,

    I suspect that the namespace declaration is missing in the Query Prolog of the XQuery expression.

    Add something like this as the first line of the XQuery:

       declare namespace tns="urn:ietf:params:xml:ns:cpim-pidf"


    I hope that helps,
    Trevor.


    #API-Management
    #webMethods
    #Tamino