Submitting data from an HTML form to a service in webM IS is straight forward -
- Have a form in your HTML whose action is fully qualified name of the service you wish to invoke.
- The field names used in the HTML form, should be same as the inputs of the service being invoked.
E.g. if I have a flow service on IS as follows:
o Fully qualified name of the service is: HTMLWorks:HtmlReply.
o Takes two numbers as input - num1 and num2, here’s what my HTML would look like:
o Output is the sum of the nos - sum
Here’s what my HTML code would look like:
[highlight=HTML]
Submitting data to the webMethods Platform
User input
[/highlight]
On the click of the submit button, the values in the text boxes (num1 & num2) will be passed to the flow service as inputs, the service will calculate the sum (or do whatever) and put the output in the variable ‘sum’. This output will be displayed through a default html template that IS uses. If you want your output to be displayed on a fancy page, you may define your own output template for the service. Read up the DSP & Output Template guide how to build output templates.
PS: When writing a piece of code in your post, please use [highlight=langName] code.
HTH, Rohit
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB