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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  invoking a flowservice through a webbrowser

    Posted 02/07/07 03:38 PM

    Hi experts,

     Can anyone let me know how can i invoke a flowservice from webbrowser (with IE5.5 say) without using webservice....
    

    Say my service is an addition of two numbers which has inputs a&b which gives output C.

    Thanks in advance…


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 2.  RE: invoking a flowservice through a webbrowser

    Posted 02/07/07 04:37 PM

    http://host:port/invoke/fully.qualified:servicename

    for example, [url]http://localhost:5555/invoke/pub.math:addFloats[/url]

    The input can then be passed as either part of a FORM posting to that URL or a query string, such as:

    [url]http://localhost:5555/invoke/pub.math:addFloats?num1=10&num2=20[/url]


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 3.  RE: invoking a flowservice through a webbrowser

    Posted 02/08/07 05:25 AM

    Thanks a lot …

    It works fine for “get” method, is there any way to post a method?

    I mean to say when i give the url with inputs mentioned(in the url itself) then it gives me an output. This is fine…

    Is there any way so that I can get a textbox when i give the same url [URL=“http://localhost:5555/invoke/pub.math:addInts”]http://localhost:5555/invoke/pub.math:addInts[/URL] asking for inputs ?

    say for example if i give this url [URL=“http://localhost:5555/invoke/pub.math:addInts”]http://localhost:5555/invoke/pub.math:addInts[/URL] then i need to get a text box asking for values num1 & num2, then which accordingly i’l get an output.

    Thanks in advance…


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 4.  RE: invoking a flowservice through a webbrowser

    Posted 02/08/07 02:21 PM

    Plain old HTML would work, or you could do a DSP hosted on the IS server (explained in the DSPandTemplatesDevGuide.pdf)

    Here’s the plain old HTML way:

    You would need to create an HTML page with a FORM element. The FORM start tag would have the attributes action= and method=post. Between the start tag and the end tag would be the INPUT elements you want to use to retrieve the values.

    For example,

    Of course, you can make it prettier than that, but there are other forums for HTML authoring… :slight_smile:


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB