Services are defined in Service definition XML document files. By convention, Service definition files are located in a containing Component's servicedef
directory. This may be changed by editing the Component's ofbiz-component.xml
file.
To define a new Service definition file, follow these few steps:
1. Check the
ofbiz-component.xml
file to make sure there is a location pointer to the Service definition file. For example:<!-- For Service Definition files, use the following --> <service-resource type="model" loader="main" location="servicedef/Services.xml"/> <!-- For Service Event Control Action files, use the following --> <service-resource type="eca" loader="main" location="servicedef/secas.xml"/> <!-- For Service Group Definition files, use the following --> <service-resource type="group" loader="main" location="servicedef/groups.xml"/>
2. Using your favorite operating system editor or IDE tool, add...