webMethods

webMethods

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.  Invoke an IS flow from Unix script

    Posted Mon January 26, 2004 05:53 PM

    How do I invoke an IS flow from a Unix script? Is it possible?

    Thank you in advance!
    Brian


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


  • 2.  RE: Invoke an IS flow from Unix script

    Posted Mon January 26, 2004 07:13 PM

    Sounds like you want the script to be an IS Client. There are lots of ways to be an IS client. The easiest is to use Developer to generate Java client code for a specific service. You can then tweek it and call it from any command processor.

    Note that IS 6.1 still supports 2.x Java clients (and every release in between), so this is a pretty stable tactic.

    HTH,
    Fred


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


  • 3.  RE: Invoke an IS flow from Unix script

    Posted Mon January 26, 2004 08:33 PM

    If you have lynx installed:

    lynx -dump -accept_all_cookies -auth Administrator:manage [url=“http://127.0.0.1:5555/invoke/my.folder/myService?firstParam=firstValue&secondParam=secondValue”]http://127.0.0.1:5555/invoke/my.folder/myService?firstParam=firstValue&secondParam=secondValue[/url]

    -dump = dump output to console instead of starting UI browser

    -accept_all_cookies = don’t prompt user to accept cookies

    -auth Administrator:manage (replace with your wm account, of course, make sure you set your access to script accordingly).

    127.0.0.1 = replace with your IP

    5555 = replace with your webMethods listening port

    my.folder = replace with your webMethods folder

    myService = replace with your service name

    ? = replace name value pairs after this point with your POST data.


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


  • 4.  RE: Invoke an IS flow from Unix script

    Posted Tue January 27, 2004 08:48 AM

    I have tried curl. But what to do if you want to analyse the result of the invoke? You need quite a bit of UNIX scripting to grep the data from the HTML data you get as a result.


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


  • 5.  RE: Invoke an IS flow from Unix script

    Posted Tue January 27, 2004 04:35 PM

    Not really, there are a lot of tools you can use to parse the results grep, awk, sed, perl, xsltproc (if you put an XML output template on the service), etc. or you can apply an output template to the service to give plaintext results instead of HTML.


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


  • 6.  RE: Invoke an IS flow from Unix script

    Posted Thu June 10, 2004 04:30 PM

    Hi,

    do you know how to post a formatted file (with tabs and newlines) with lynx?

    thanks


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