While Groovy is normally used for data preparation, this and other integrated scripting languages may be used to implement OFBiz Services. Using a scripting language to implement a Service has the advantage that the Service does not need to be compiled nor the containing Component rebuilt prior to use.
Make sure you have a "local dispatcher" and "local delegator" (if you want to use database Services) defined in the web.xml
file, then follow these steps:
1. Check the
web.xml
file and make sure there is a local dispatcher and local delegator defined for the Component from which you will be calling the Service. For example:<context-param> <param-name>localDispatcherName</param-name> <param-value>example</param-value> <description> A unique name used to identify the local dispatcher for the Service Engine </description> </context-param> <context-param> <param-name>entityDelegatorName</param-name...