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.  how to invoke Flow Services through http ( from html page)

    Posted Sun November 12, 2006 05:00 AM

    Hi All,

    I have a question in web methods.

    My Scenario is : http → Web methods Flow service .

    Can i get seom help of how to proceed in this scenario?

    I have all my flow service ready which inserts data into database.

    Now I will have to test the service from a html page.

    please help me in this.

    I would like to know how the data is received by web methods? will this be a string data / Xml document?

    Regards,
    Charan


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


  • 2.  RE: how to invoke Flow Services through http ( from html page)

    Posted Sun November 12, 2006 06:14 AM

    Create an html containing a form whose action is set to the fully qualified name of the service that you want to invoke. In the html form, use the same name for the input text tags as the inputs of your flow service.

    Eg if you have a service TestService in a folder called TestFolder. In addition, lets also assume that your service takes two input parameters → firstName and lastName, here’s a snippet of how your html code should look like:
    [highlight]

    [/highlight]

    When the submit is clicked, the TestService is invoked with the inputs firstName and lastName. When the service completes execution, the output template defined in the TestService will be used to display the results in the browser. If there is no output template defined in the TestService the default template (the webMethods IS gray template) will be used.

    I would recommend reading DSPandTemplatesDevGuide.pdf in the /Developer/doc/guides folder (that’s where it is in the 6.1 version). Hope this helps.

    Rohit

    Edit - missed out the invoke in the action URL


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


  • 3.  RE: how to invoke Flow Services through http ( from html page)

    Posted Sun November 12, 2006 06:24 AM


  • 4.  RE: how to invoke Flow Services through http ( from html page)

    Posted Sun November 12, 2006 06:58 AM

    Rohit,

    Will the data come as a string or as a Node type after submission?

    Regards,
    Charan


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


  • 5.  RE: how to invoke Flow Services through http ( from html page)

    Posted Sun November 12, 2006 11:55 AM

    For the example above, the invoked service ‘Testfolder:TestServie’ should receive two string variables, ‘firstname’ and ‘lastname’. Another example showing posting an XML document using a form can be found here.

    Mark


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


  • 6.  RE: how to invoke Flow Services through http ( from html page)

    Posted Mon November 13, 2006 09:19 PM

    If you create those html fields in a table structure you see the same field variables as string and string list ,if I am not wrong…anyways just invoke savepipelinetofile and restorePipeLnetoFile ,you can see the actual variables coming in to the service when invoked from a HTML page.


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


  • 7.  RE: how to invoke Flow Services through http ( from html page)

    Posted Mon November 13, 2006 09:43 PM

    Hello,
    A look at the ISJSPGuide.pdf unser Developer / doc / guides will tell you about invoking services through the IS JSP Tag library (webm). That uses a path syntax to the service similar to what you do in a java service your how it is path in FLOW. This is for a page living on the IS server itself. For a page living outside, you may need to set the access for each externally called service to Anonymous (maybe in either case) and the you can use the http://server-name:server-port/invoke/folder/folder/service convention. You can see this through the admin webpage when you go to Packages → Management and you browse to a package down to its services and open to test service. You can then view the source to the Page to see the action in the form section. Good day.

    Yemi Bedu


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