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

Consuming Global Transaction ID in flow service

  • 1.  Consuming Global Transaction ID in flow service

    Posted Fri April 29, 2016 07:39 AM

    hi ,

    we have a requirement where we are exposing our flow service as wsdl to the thrid party system called as TP .
    TP is generating the transaction ID which needs to be consumed in webMethods and they are pasing it in global header .

    How can we fetch the transaction id in webMethods as we are the provider .
    I am able to find this transction ID in integration server when i increase the logging level to Debug. We need to get this transction id in the flow service .
    How can this be achieved in webMethods .

    We have a catch here : we cannot expose extra field in the input so that transaction id can directly be passed by TP system to webMethods.

    Thanks
    Mithilesh


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Consuming Global Transaction ID in flow service

    Posted Fri April 29, 2016 08:51 AM

    What’s the business use-case, why you should not use extra field to store TID which is sent by TP system ? It’s better to have a new field as part of good design.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Consuming Global Transaction ID in flow service

    Posted Fri April 29, 2016 08:58 AM

    Actaully transactionId is being generated by TP system and the Message which they are passing to the wsdl are being fetched by TP from other systems and if i expose a new field in input they need to change the message at intermediate level to map TransactionID . TP systems dont want to touch the message as they are just the message router.


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Consuming Global Transaction ID in flow service

    Posted Fri April 29, 2016 12:00 PM

    When you say transactionID is visible in the debug log mode and do you where it’s being populated from or by webMethods internally (as a provider) or TP system sends it?

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Consuming Global Transaction ID in flow service

    Posted Fri April 29, 2016 01:06 PM

    if the TID is in the http request header, try to use:
    pub.flow:getTransportInfo
    you should see it and capture it.


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Consuming Global Transaction ID in flow service

    Posted Mon May 02, 2016 02:08 AM

    [color=brown][u][b]

    [/b]
    [/u][/color]
    Can you put the section of the logs that you were able to see?

    Thanks
    Mallik


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Consuming Global Transaction ID in flow service

    Posted Mon May 02, 2016 05:57 AM

    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← X-Backside-Transport: OK OK
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Connection: Keep-Alive
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Transfer-Encoding: chunked
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Cache-Control: private, max-age=0
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Content-Type: text/xml
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Server: Microsoft-IIS/8.0
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← X-AspNet-Version: 4.0.30319
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← X-Powered-By: ASP.NET
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← Date: Wed, 06 Apr 2016 05:47:37 GMT
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← X-Client-IP: XXXXXXXXXXXXXXXXXXXXX
    (IS.SERVER) [ISC.0038.2] 2016-04-05 22:47:39 PDT DEBUG: ← X-Global-Transaction-ID: 400420833
    (IS.SERVER) [ISS.0142.2] 2016-04-05 22:47:39 PDT DEBUG: Unregistered Lifecycle Listener Socket


    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Consuming Global Transaction ID in flow service

    Posted Tue May 03, 2016 01:11 AM

    I think, by looking at the logs, the clients are performing a http invoke, rather than SOAP WS. :?:

    I performed a simple POC, where using a rest call, am able to get the http header information, where as with SOAP client cannot pass this header info.

    package: ZZMallik
    Soap UI projects:

    Have a look at this and let me know
    TestWS-soapui-project.xml (4.98 KB)
    REST-Project-1-soapui-project.xml (2.44 KB)
    ZZMallik.zip (7.08 KB)


    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Consuming Global Transaction ID in flow service

    Posted Thu May 05, 2016 05:53 AM

    hi Mallik ,

    which version of wM you have developed the code , when i tried importing the package in 9.6 version , packages is being deployed and activated successfully , but im not able to find any flow service , adapters in designer .

    Regards
    Mithilesh


    #webMethods
    #Integration-Server-and-ESB