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

Problem getting results for createDocumentQuery

  • 1.  Problem getting results for createDocumentQuery

    Posted Wed December 28, 2005 08:13 AM

    Hi All,

    I’m trying to develop a service that will Resubmit the TN Documents.
    In that service i’m using
    wm.tn.query:createDocumentQuery and
    wm.tn.query:documentQuery

    For the wm.tn.query:createDocumentQuery service, I’m giving only the SenderID, receiverid and timeinterval as the inputs. The problem is i’m not getting any results for these inputs. But if I give the InternalDocId then i’m getting the results.

    Is the InternalDocId necessary? the PDF doc says its optional though.

    whatelse can I do if the problem persists?

    Thanks for your time,
    Nandan


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 2.  RE: Problem getting results for createDocumentQuery

    Posted Wed December 28, 2005 10:07 AM

    Hi Nandan

    The fields which you see for wm.tn.query:createDocumentQuery are nothing but , the fields which you extract in the extended tab-> Document Type tab in TN. These are the fields you find in transaction log. Try to exract the fiels from your document and the same can be queried in the service wm.tn.query:createDocumentQuery.

    If you have other fields to query like senderID, receiverId & document Id ,you donot need to mention InternalDocId.

    thanks
    Ramesh


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Problem getting results for createDocumentQuery

    Posted Wed December 28, 2005 12:01 PM

    Hi Ramesh,

    Thanks for your help, thats working fine now.

    Have one more query,
    The TN Document I’m getting has no timestamp, can i use the “Date Received” as seen in the Transaction Analysis as an attribute, to go with the “attribs” in the input of the wm.tn.query:createDocumentQuery.
    In other words can i use the “Date Received” as an Attribute?

    Thanks and Regards
    Nandan


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Problem getting results for createDocumentQuery

    Posted Wed December 28, 2005 03:53 PM

    Nanda,

    you can specify the attibutes that you want to retrieve from TN also bizdoc Envelope should give you all the info.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration