External Validation Service Writing a Custom 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

3.4.3. Sample Files

Example 12. package.xml ?xml version=1.0 encoding=UTF-8? package xmlns=http:systinet.comwasppackage1.2 xsi:schemaLocation= http:systinet.comwasppackage1.2 http:systinet.comwasppackage1.2 targetNamespace=http:my.org version=1.0 name=ISBNValidation client-package=false library=false xmlns:xsi=http:www.w3.org2001XMLSchema-instance xmlns:tns=http:my.org xmlns:UDDIClient-value-set-validation-v3= http:systinet.comuddiclientvalue-set-validationv35.0 dependency ref=UDDIClient-value-set-validation-v3:UDDIClient-value-set-validation-v3 version=5.0 service-endpoint name=ISBNValidation path=ISBNValidation service-instance=tns:ISBNValidationInstance processing=UDDIClient-value-set-validation-v3:UDDIClientProcessing wsdl uri=uddi_vs_v3.wsdl xmlns:wsdl=urn:uddi-org:vs_v3_binding service=wsdl:UDDI_ValueSetValidation_SoapService service-endpoint service-instance name=ISBNValidationInstance implementation-class=demo.uddi.validation.ISBNValidation preload=false ttl=600 instantiation-method=shared package

3.5. Writing a Subscription Notification Service

This section will show you how to implement a subscription notification service. When you create an Oracle Service Registry subscription you can specify a notification listener service endpoint as described in Section 1.4, Subscriptions in Oracle Service Registry . In this chapter, we describe the following use case: The user wants to create a service that will be executed when a subscription notification is sent. The listener notification service will be deployed on the Systinet Server for Java. The procedure of creating and deploying the subscription notification consist of the following steps: 1. Create subscription notification service class. Package the notification service class with necessary wsdl, schema, and deployment descriptor files. 2. Deploy the service notification package with the required Oracle Service Registry client packages into Systinet Server for Java. 3. Create a subscription using the Registry Control. Note We assume Oracle Service Registry is installed in 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. Page 545

3.5. Writing a Subscription Notification Service

Now we will describe the process in detail: 1. Create the subscription notification service class shown in Example 13, ExampleNotificationListener.java 2. Compile the ExampleNotificationListener.java using: javac -classpathREGISTRY_HOME\dist\uddiclient_api_v3.jar; REGISTRY_HOME\dist\uddiclient_core.jar; REGISTRY_HOME\dist\uddiclient_subscription_listener_v3.jar; REGISTRY_HOME\dist\uddiclient_subscription_v3.jar ExampleNotificationListener.java 3. Package the ExampleNotificationListener.class with necessary wsdl, schema and deployment descriptor file as follows: a. Create a jar file ExampleNotificationListener.jar with the following structure: b. Copy the wsdl and schema files from REGISTRY_HOMEdocwsdl to the package. c. Copy the package.xml file shown in Example 14, package.xml to the package. 4. Deploy the service notification 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_subscription_v3.jar WASP_HOME\app\system\uddi c. copy REGISTRY_HOME\dist\uddiclient_subscription_listener_v3.jar WASP_HOME\app\system\uddi d. copy ExampleNotificationListener.jar WASP_HOME\app\system\uddi 5. Shutdown the Systinet Server for Java, delete the WASP_HOMEwork directory, and restart the Systinet Server for Java 6. Create a subscription using the Registry Control. Page 546

3.5. Writing a Subscription Notification Service