Reputation: 21
I have a html page with some form fields (like textbox, submit button etc) I want to call the BW process on click of the submit button, which will send the form fields value (textbox values) to the BW process definition.
BW Process definition will do some operation (like retrieve the database record) and send the result to the html page.
When I use http://localhost:9999
, it will only call the BW process (Http receiver and Send HTTP Response) and the html page will populate with the string which i get from "Send HTTP Response" palette.
How can I embed that HTTP response into some text field of the response webpage along with few images and other fields already present in HTML page.
Upvotes: 2
Views: 6763
Reputation: 1338
Have you tried using the Generate Web Service form the Tools menu in Designer? Select the process you need to use then run this.
You first need to make sure that the process start & end has the correct parameters. I think it is best to use xml and an xsd, i.e. in output editor select content of XML Element Reference type, then select the correct schema and element.
Once you have the wsdl and the url you can call this just like any other web service.
Upvotes: 1
Reputation: 1499
It is not clear from your description, but I suppose your HTML Form is a .html file on your local filesystem. That probably means all your images are also files on your local file system. The HTTP Response HTML cannot contain any references to resources on the client's local filesystem. If you'd like to have images or other resources embedded in your response page you've 3 possibilities, in order of complexity:
Upvotes: 4