Services may be called directly from HTML forms by setting the HTML form's action
element to point to the URL of a controller.xml
request-map that resolves to either an OFBiz Event that calls a Service or directly to a Service. To demonstrate this, the following section uses the WebTool's Run Service HTML form to invoke a Service.
For the purposes of this recipe, we shall use an existing Service called testScv
and invoke it from the WebTools UI. In this example, we will not be creating an HTML form nor creating a Service, but rather using an existing form and Service:
To view the results of the
testScv
Service's execution, open an OFBiz console window from the command lineAlternatively, to view the results of the execution, run the Unix
tail
commandtail -f ofbiz.log
on theofbiz.log
file~runtime/ofbiz.log
while performing this recipe