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.  Transforming xml attributes

    Posted Tue October 08, 2013 05:50 PM

    We get a custom XML in TN. The XML has a sender-id and an id-type (qualifier).

    When doing a transformation, TN expects us to hard code the “id-type” of sender-id (DUNS, Mutually Defined etc).
    It does not allow me to dynamically assign the “type” using the id-type field in the XML.

    Has anyone achieved this before? Help appreciated.

    Thanks,
    Vikas.


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


  • 2.  RE: Transforming xml attributes

    Posted Tue October 08, 2013 06:09 PM

    you can use service:
    wm.tn.profile:getInternalID to get the right profile.
    check webMethods Trading Networks
    Built-In Services Reference for detail


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


  • 3.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 01:00 AM

    I am not sure how I would use wm.tn.profile:getInternalID. After we routeXML, the TN engine needs to recognize the sender and receiver. To do that we have to set the document attribute senderID using an xquery. If my ID was always DUNS, this was no problem. I can set the transformation to DUNS and I am done. But my ID type is dynamic and its value is provided in the same xml.


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


  • 4.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 02:25 AM

    So you mean to say, you have multiple external id’s (duns,mutually defined etc) for same partner and you want them dynamically assgin it while transformation right?


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


  • 5.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 11:59 AM

    Can’t you use getExternalID in your flow or maintain some way in a custom table and retrieve from using the key you said in the XML?

    HTH,
    RMG


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


  • 6.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 12:14 PM

    Precisely.


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


  • 7.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 12:20 PM

    The problem is that I don’t get a handle on the bizdoc before the TN engine does its pre-processing (before even the processing rule). The only service that can possible get invoked is the transformation service. That transformation service only gets the xquery in “values”, isArray and arg (wm.tn.rec:StringAttributeTransformService).

    One way I could do this is by parsing every different XML structure before I route to TN and identify the sender and receiver ID. But this will be a nightmare as there are many different XML documents being exchanged.


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


  • 8.  RE: Transforming xml attributes

    Posted Wed October 09, 2013 12:53 PM

    I am not sure if there is any easy way around unless you parse the original XML and retrieve the identifier for dynamic look up.


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