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.


#TechXchangePresenter
 View Only
  • 1.  DataSet and namespaces

    Posted Thu November 06, 2003 08:23 AM

    Hello,

    I would like to use the data adapter to update my documents in the tamino database using the .NET API.

    I worked fine when there were no namespace in my xml document. Since there I use namespace, the ‘adapter.Fill(dataSet,query) raise an exception. (TaminoException)
    If I declare the namespace in the query, the exception is :

    “TANPIE0001: FillUpdateable operation failed: INOXQE6352: XQuery parsing error. : Syntax error at line 1, column 177: .”

    My query is :

    declare namespace ctxCS=‘myNamespace’ input()/ctxCS:contractXContractStatus/ctxCS:contract[@ID=‘3’]
    (this query works fine in the tamino interactive interface)

    If I don’t declare the namespace in the query, the exception is :

    "TANPIE0001: FillUpdateable operation failed: INOXQE6354: Namespace prefix undefined. : Namespace prefix: ctxCS. "

    My query is :
    input()/ctxCS:contractXContractStatus/ctxCS:contract[@ID=2’]


    thanks in advance for your help…


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


  • 2.  RE: DataSet and namespaces

    Posted Thu November 06, 2003 08:37 AM

    Ok… that’s right, I resolved by myself, when I understood what mean “queryprolog”
    see
    http://tamino.demozone.softwareag.com/demoXQuery/XQueryDemo/reference.jsp?show=user&page=nuts#xq-nb-prolog

    The explanation of “prolog” in the .NetAPI documentaion is not very relevant…


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