Hi
Im having problem using HTML to submit data to flow. Im just writing a test program where i give an input as htmlInput in which im calling the add function and sending it to the output as outputValue. The program runs fine in my developer it takes values and add it. But when i try to run it through my IE as a html file it throws some Exception error. I have also created a DSP file in my outputValue string, Here is the error that i get when i submit the values.
$errorDump com.wm.app.b2b.server.UnknownServiceException: HTML_TEST:htmlReply at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:68) at com.wm.app.b2b.server.InvokeHandler.process(InvokeHandler.java:113) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:298) at com.wm.util.pool.PooledThread.run(PooledThread.java:105) at java.lang.Thread.run(Thread.java:512)
$errorInfo $errorDump com.wm.app.b2b.server.UnknownServiceException: HTML_TEST:htmlReply at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:68) at com.wm.app.b2b.server.InvokeHandler.process(InvokeHandler.java:113) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:298) at com.wm.util.pool.PooledThread.run(PooledThread.java:105) at java.lang.Thread.run(Thread.java:512)
$error HTML_TEST:htmlReply
$localizedError HTML_TEST:htmlReply
$errorType com.wm.app.b2b.server.UnknownServiceException
$user Default
$time 2005-04-21 16:00:37 EDT
$details
$errorMsgId
Please make sure that you are invoking correctly specifying with fully qualified name of the Service.(case sensitive) and this should be inside invoke tag.
RMG you were right we were not using the fully qualified name. Now we are not getting any error. its just that after submitting the HTML page to flow service ,it replies back but with null values i mean the response page is coming with blank spaces.My understanding is that values from request page is not submitting to the flow service.Any help will be appreciated.
I am trying to transport data from a HTML-page to webMethods. Therefore I use the pub.flow:SavePipelineToFile and also pub.flow:restorePipelineFromFile. The next step is to transfer the data to a database. When I’m in webMethods I can transfer data to the Database. But I cannot transfer data from the HTML-page to webMethods and then to the Database. Can you give some advise?
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