Previous Next JavaScript must be enabled to correctly display this content

## 3.6 Custom Validation Service

This topic provides the systematic instructions to generate custom validation service.

The purpose of this service is to perform custom validations on the base service. It is important to remember that we will be only able to perform the validation and never modify the payload to change the value.

To generate validation service, follow the below steps:

1. Navigate to same extension_home folder using cmder.
2. Use the command obx validation -c.
3. It will generate a folder inside the extension_home folder with obx-validation-service.

   Figure 3-27 OBX validation service

   Description of "Figure 3-27 OBX validation service"
4. For building the service, go into the service folder from cmder and run the command gradle clean build.
5. This will build the service and we can find the war of the service getting created inside the build/libs directory.

   Figure 3-28 Libs Directory

   Description of "Figure 3-28 Libs Directory"
6. Use this service and deploy it in your environment.

Parent topic: Service Extensions