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.  Invoking webMethods service from a Perl Script

    Posted Wed April 02, 2014 06:45 AM

    Hi,

    I am looking to achieve the following

    1. A webMethods flow service needs to be invoked inside a perl script
    2. The output of this flow service is true or false
    3. If true then the script should not execute and a failure message need to be displayed
    4. If false then the script needs to execute.

    I need to execute this script from the Solaris box only(not from webMethods developer)

    Can you please let me know how this can be done ?


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


  • 2.  RE: Invoking webMethods service from a Perl Script

    Posted Wed April 02, 2014 07:46 AM

    As far as I know, webMethods doesn’t support perl client invoke, but you can write the script to invoke service via HTTP.

    Steps:

    1. In the service use pub.flow:setResponse to return “true” or “false” as response
    2. Set the execute ACL of this service to anonymous
    3. Write the perl script to send the GET request to URL http://HOST:PORT/invoke/FOLDER.SUBFOLDER/SERVICENAME?PARAM=something
    4. Parse the HTTP response, then do what you want to do in perl

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


  • 3.  RE: Invoking webMethods service from a Perl Script

    Posted Fri April 04, 2014 08:30 AM


  • 4.  RE: Invoking webMethods service from a Perl Script

    Posted Thu April 24, 2014 05:49 AM

    Thanks Wang for your inputs. I was able to make it work with wget command in perl and invoke the service.


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


  • 5.  RE: Invoking webMethods service from a Perl Script

    Posted Thu April 24, 2014 07:30 AM

    Hi Sachin,

    If its not a copyright material (project related), can you please share your code sample package (.zip) with some details in a .doc/.txt.

    If you can attach it :slight_smile: in the same thread.


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