Deploying Validation Service Writing a Custom Validation Service

1. Create a classes subdirectory under REGISTRY_HOMEappuddiservicesWASP-INF and copy the class file into this directory with respect to subdirectories corresponding to packages. 2. Shutdown Oracle Service Registry, delete the REGISTRYwork directory, and restart Oracle Service Registry. For more information, please see the Demos, Section 2.4, Validation . For details about the configuration of Validation Services, please see Administrators Guide, Section 1.5, Taxonomy Management To deploy an external validation service, you must create a deployment package.

3.4.2. External Validation Service

This section shows you how to implement and package an external validation service that will be deployed to Systinet Server for Java. We show you how to package and deploy the ISBN validation service from the validation demo described in Section 2.4, Validation . We assume you have already built the Validation demo. Note We also assume Oracle Service Registry is installed in the REGISTRY_HOME folder and running at http:localhost:8888registry and that Systinet Server for Java is installed in WASP_HOME folder and running at http:localhost:6060 To package and deploy a validation service to Systinet Server for Java: 1. Create a deployment package. Create the jar file ExampleValidation.jar with the following structure: Copy ISBNValidation.class from REGISTRY_HOMEdemosadvancedvalidationbuildclasses to the package. Copy the wsdl and xsd files from REGISTRY_HOMEdocwsdl to the package. Copy the package.xml file shown at Example 12, package.xml to the package. 2. Deploy the validation package with required Oracle Service Registry client packages into Systinet Server for Java. a. copy REGISTRY_HOME\dist\uddiclient_api_v3.jar WASP_HOME\app\system\uddi b. copy REGISTRY_HOME\dist\uddiclient_value_set_validation_v3.jar WASP_HOME\app\system\uddi Page 543

3.4.2. External Validation Service

c. copy ExampleValidation.jar WASP_HOME\app\system\uddi 3. Shutdown the Systinet Server for Java, delete the WASP_HOMEwork directory, and restart the Systinet Server for Java Now you can upload the checked taxonomy from REGISTRYdemosadvancedvalidationdata. For more information, please see Users Guide Section 1.5.5, Uploading Taxonomies . Modify the validation service endpoint as shown in Figure 10 Figure 10. Validation for Checked Taxonomy You can run and test the validation service using Validation demo described in Section 2.4, Validation . Page 544

3.4.2. External Validation Service