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
  • 1.  Save service input to string

    Posted Tue September 06, 2011 03:04 PM

    Hi all,

    I’m looking for a way to save flow service’s input into a string within the very same service.

    I thought about finding contextId and using monitoring tools (getPipeline), but this requires turning on monitoring for those services. Quite a big disadvantage…

    Any other solutions?

    PS.
    I’ve searched the forum and it seems like the contextId solution is the only way out :frowning:


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Save service input to string

    Posted Tue September 06, 2011 03:57 PM


  • 3.  RE: Save service input to string

    Posted Tue September 06, 2011 04:16 PM

    This saves the pipeline to a file on the IS machine. I want to save it to a string inside a map, invoke or whatever (inside my flow service) and then be able to use it in further service steps (eq. save it to my own db).


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: Save service input to string

    Posted Tue September 06, 2011 04:17 PM


  • 5.  RE: Save service input to string

    Posted Tue September 06, 2011 04:21 PM

    I’m building a monitoring tool of my own :wink:


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: Save service input to string

    Posted Tue September 06, 2011 04:30 PM

    I guess I could go down the path of why you’d want to reinvent something but…

    You could create a Java service that examines the pipeline and converts it to a string format of some sort. pipeline.toString() might be sufficient for your needs.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: Save service input to string

    Posted Tue September 13, 2011 12:07 PM

    The solution was realy simple… all you need is to write a java service with no input and invoke the WmPublic.pub.xml:documentToXMLString service with pipeline as document parameter…


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB