OFBiz is made aware of a Service by the presence of a Service definition within a Service definition file. Each OFBiz Service has a Service definition that configures the Service with a name, location information, Service implementation engine type, and other optional parameters.
To create a new Service definition, follow these steps:
1. Find an existing Service definition file or create a new one.
2. Add one or more
service
element XML declarations. For example:<service name="someName" engine="one_of_the_available_engines" location="component_or_CLASSPATH_location" <!-- Add any INPUT/OUTPUT attribute elements here --> <!-- Add a PERMISSION-SERVICE element --> <!-- For Simple Services, add any AUTO-ATTRIBUTE elements --> </service>
3. Make sure the new Service definition element has a closing
</services>
tag.4. Save and close the file.