![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
1.
2.
3. Publish a binding template for the above-mentioned web service in the same UDDI registry as the tModel belongs to, with its technical fingerprint referencing the tModel whose key is uddi-org:valueSetCaching_v3 (for the cacheable category) or uddi-org:valueSetValidation_v3 (for the non-cacheable category) and the tModel published in step 2.
4. There are two ways to do validation for a checked category. The following examples demonstrate how to use a checked category based on different validation types.This example demonstrates how to use a customized web service to check if a value belongs to a checked and cacheable category. The value validated in the example is referenced by the keyValue in a keyedReference element of a categoryBag element. The cached category is referenced by the tModelKey in the keyedReference element of the categoryBag element.
• The valid version numbers are defined in the WEB-INF/classes/config.properties file wrapped in the war file.
• The web service used in this example is implemented using JAVA API for XML Web Services (JAX-WS).
1. Download the JAX-WS 2.1.4 project from https://jax-ws.dev.java.net and install it. Copy the lib folder from the JAS-WS installation directory to the following directory:UDDI_HOME/sample/data/taxonomy/checked-cachedvalue
2. Open a command line window and change the path to UDDI_HOME/sample/data/taxonomy/checked-cachedvalue.
3. Build the cachedValueValidationWebservice.war file in the war directory by executing the following command:
−
4. Deploy cachedValueValidationService.war in a web container.Replace the string http://localhost:8080/ in the publish_binding.xml file with http://Host:Port/, where Host is the host name or IP address of the web container; Port is the web container port.
5. To publish the binding template, execute one of the following commands by using the data file publish_binding.xml file under the UDDI_HOME/sample/data/taxonomy/checked-cachedvalue directory.
6. To publish the tModel, execute one of the following commands by using the data file publish_tModel.xml under the UDDI_HOME/sample/data/taxonomy/checked-cachedvalue directory.
7. To publish a valid service, execute one of the following commands by using the data file publish_service_data_valid.xml under the UDDI_HOME/sample/data/taxonomy/checked-cachedvalue directory.
8. To publish an invalid service, execute one of the following commands by using the data file publish_service_data_invalid.xml under the UDDI_HOME/sample/data/taxonomy/checked-cachedvalue directory.
You need to replace the domain name part of the keys in the sample data files with your node name used in the UDDI server.This example demonstrates how to use a customized web service to check if a value belongs to a checked and uncached category. The value validated in the example is referenced by the keyValue in a keyedReference element of a categoryBag element. The uncached category is referenced by the tModelKey in the keyedReference element of the categoryBag element.
• The web service used in this example is implemented using JAVA API for XML Web Services (JAX-WS).
1. Download the JAX-WS 2.1.4 project from https://jax-ws.dev.java.net and install it. Copy the lib folder from the JAS-WS installation directory to the following directory:UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue
2. Open a command line window and change the path to UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue.
3. Build the uncachedValueValidationWebservice.war file in the war directory by executing the following command:
−
4. Deploy uncachedValueValidationService.war in a web container.Replace the string http://localhost:8080/ in the publish_binding.xml file with http://Host:Port/, where host is the host name or IP address of the web container; Port is the web container port.
5. To publish the binding template, execute one of the following commands by using the data file publish_binding.xml under the UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue directory.
6. To publish the tModel, execute one of the following commands by using the data file publish_tModel.xml under the UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue directory.
7. To publish a valid service, execute one of the following commands by using the data file publish_service_valid.xml under the UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue directory.
8. To publish an invalid service, execute one of the following commands by using the data file publish_service_invalid.xml under the UDDI_HOME/sample/data/taxonomy/checked-uncachedvalue directory.
You need to replace the domain name part of the keys in the sample data files with your node name used in the UDDI server.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |