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

TN Document Type - XML - Retrieving the ReceiverID from the Root Node attribute

  • 1.  TN Document Type - XML - Retrieving the ReceiverID from the Root Node attribute

    Posted Fri September 28, 2012 04:41 AM

    Hi,

    In defining an XML Document Type in TN, is there any way to extract the ReceiverID from the attribute of the Root Node ?? Given the following example, how would I go about extracting the value of the “target” attribute (which is INFORAP) from the TN Document Type definition ??

    <?xml version="1.0" ?>

    -
    -

    Any help is greatly appreciated.

    Cheers,
    David


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


  • 2.  RE: TN Document Type - XML - Retrieving the ReceiverID from the Root Node attribute

    Posted Fri September 28, 2012 03:35 PM

    You can try upload the same xml sample document and extract it

    for example XQL query: Below here where @domain is nothing but target attribute in your sample above:

    /cXML/Header/To/Credential[(@domain $eq$ ‘NetworkId’ $or$ @domain $eq$ ‘NetworkID’ $or$ @domain $eq$ ‘DUNS’ $or$ @domain $eq$ ‘AribaNetworkUserId’) $and$ ($not$ @type $or$ @type $eq$ ‘’)]/Identity


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