JARs on the Client Classpath

core_services_client.jar; jaas.jar; jaxm.jar; jaxrpc.jar runner.jar saaj.jar; security-ng.jar; security2-ng.jar; security_providers_client.jar; wasp.jar; wsdl_api.jar xercesImpl.jar; xml-apis.jar; xmlParserApis.jar; UDDI API Client v1 To enable the UDDI API v1 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.1.2, UDDI Version 1 uddiclient_api_v1.jar uddiclient_core.jar UDDI API Client v2 To enable the UDDI API v2 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.1.3, UDDI Version 2 . uddiclient_api_v2.jar uddiclient_core.jar UDDI API Client v3 To enable the UDDI API v3 client package, add these .jar files to the classpath. For more information on this client packages, please see Section 2.1.4, UDDI Version 3 . uddiclient_api_v3.jar uddiclient_core.jar UDDI API Client v3 ext X To enable the UDDI API v3, ext X client package, add these .jar files to the classpath. uddiclient_api_v3_ext.jar uddiclient_api_v3.jar uddiclient_core.jar Page 520 UDDI API Client v3 ext X Account Client To enable the Account client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.3.1, Account . account_client.jar uddiclient_core.jar Admin Utilities Client To enable the Admin Utilities client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.5, Administration Utilities . admin_utils_client.jar uddiclient_api_v3.jar uddiclient_core.jar Approval Client v3 To enable the Approval v3 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.4, Approval . approval_client_v3.jar uddiclient_api_v3.jar uddiclient_api_v2.jar uddiclient_core.jar Approval Content Checker Client v3 To enable the v3 Approval Content Checker client package, add these .jar files to the classpath. approval_content_checker_client_v3.jar uddiclient_core.jar Approval Management Client To enable the Approval Management client package, add these .jar files to the classpath. approval_management_client.jar uddiclient_core.jar Category Client v3 To enable the Category v3 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.3, Category category_client_v3.jar Page 521 Category Client v3 uddiclient_api_v3.jar uddiclient_core.jar Group Client To enable the Group client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.3.2, Group . group_client.jar account_client.jar uddiclient_core.jar Permission Client To enable the Permission client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.3.3, Permission . permission_client.jar account_client.jar uddiclient_core.jar Replication Client v3 To enable the Replication v3 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.6, Replication . replication_client_v3.jar uddiclient_core.jar Statistics Client To enable the Statistics client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.7, Statistics . statistics_client.jar uddiclient_core.jar Taxonomy Client v3 To enable the v3 Taxonomy client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.2, Taxonomy . taxonomy_client_v3.jar taxonomy_client_v31.jar uddiclient_api_v3.jar uddiclient_core.jar Page 522 Taxonomy Client v3 UDDI Custody Client v3 To enable the v3 UDDI Custody client package, add these .jar files to the classpath. For more information on this client package, please see Section Custody . uddiclient_custody_v3.jar uddiclient_api_v3.jar uddiclient_core.jar UDDI Subscription Client v3 To enable the v3 UDDI Subscription client package, add these .jar files to the classpath. For more information on this client package, please see Section Subscription . uddiclient_subscription_v3.jar uddiclient_api_v3.jar uddiclient_core.jar UDDI Subscription Listener Client v3 To enable the v3 UDDI Subscription Listener client package, add these .jar files to the classpath. For more information on this client package, please see Section Subscription . uddiclient_subscription_listener_v3.jar uddiclient_subscription_v3.jar uddiclient_api_v3.jar uddiclient_core.jar UDDI Validate Values Client v1 To enable the UDDI Validate Values v1 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.1, Validation . uddiclient_validate_values_v1.jar uddiclient_api_v1.jar uddiclient_core.jar UDDI Validate Values v2 To enable the UDDI Validate Values v2 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.1, Validation . uddiclient_validate_values_v2.jar uddiclient_api_v2.jar uddiclient_core.jar Page 523 UDDI Validate Values v2 UDDI Value Set Caching Client v3 To enable the UDDI Value Set Caching v3 client package, add these .jar files to the classpath. uddiclient_value_set_caching_v3.jar uddiclient_api_v3.jar uddiclient_core.jar UDDI Value Set Validation Client v3 To enable the UDDI Value Set Validation v3 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.1, Validation . uddiclient_value_set_validation_v3.jar uddiclient_api_v3.jar uddiclient_core.jar WSDL2UDDI Client v2 To enable the WSDL2UDDI v2 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.8, WSDL Publishing wsdl2uddi_client_v2.jar uddiclient_api_v2.jar uddiclient_core.jar WSDL2UDDI Client v3 To enable the WSDL2UDDI v3 client package, add these .jar files to the classpath. For more information on this client package, please see Section 2.2.8, WSDL Publishing wsdl2uddi_client_v3.jar uddiclient_api_v3.jar uddiclient_core.jar Resources publishing XML, XSD, XSLT Client To enable the client package, add these .jar files to the classpath. uddiclient_api_v3.jar uddiclient_core.jar xml2uddi_client_v3.jar xsd2uddi_client_v3.jar xslt2uddi_client_v3.jar Page 524 Resources publishing XML, XSD, XSLT Client Classpath Examples To run your Oracle Service Registry client code you must add a config directory, wasp.jar, and clients jars to the classpath. Note CLIENT_HOME=. CONF_DIRECTORY=CLIENT_HOME\conf DIST_DIRECTORY=CLIENT_HOME\dist LIB_DIRECTORY=CLIENT_HOME\lib • If you want to use only UDDI Version 3: CONF_DIRECTORY;LIB_DIRECTORY\wasp.jar;DIST_DIRECTORY\uddiclient_api_v3.jar • If you want to use only UDDI Version 3 and UDDI Subscription Version 3: CONF_DIRECTORY;LIB_DIRECTORY\wasp.jar;DIST_DIRECTORY\uddiclient_api_v3.jar; DIST_DIRECTORY\uddiclient_subscription_v3.jar • If you want to use only UDDI Version 3, UDDI Subscription Version 3, and Taxonomy: CONF_DIRECTORY;LIB_DIRECTORY\wasp.jar;DIST_DIRECTORY\uddiclient_api_v3.jar; DIST_DIRECTORY\uddiclient_subscription_v3.jar;DIST_DIRECTORY\taxonomy_client_v3.jar

2.5. Client Authentication

By default, all exposed registry APIs use the UDDI authentication scheme, where an authentication token is passed with every call to identify a remote user. This is shown in registry demos such as Section 1.3.2, Publishing v3 . The UDDI authentication scheme can be replaced. This section demonstrates an example client that publishes a new business entity using HTTP-Basic or SSL client authentication.

2.5.1. Example Client

For simplicity, the example client uses a SOAP stack provided with Oracle Service Registry. You can use a SOAP stack of your choice to communicate with the registry. Page 525

2.5.1. Example Client

Example 3. ExampleClient.java c Copyright 2001-2008 Hewlett-Packard Development Company, L.P. Use is subject to license terms. import org.systinet.uddi.client.v3.UDDIPublishStub; import org.systinet.uddi.client.v3.UDDI_Publication_PortType; import org.systinet.uddi.client.v3.struct.; public class ExampleClient { public static void mainString[] args { String registryBaseUrl = System.getPropertyregistry.base.url,http:localhost:8080; String urlPublishing = registryBaseUrl+ uddipublishing; System.out.printUsing publishing URL +urlPublishing + .; try { UDDI_Publication_PortType publish = UDDIPublishStub.getInstanceurlPublishing; System.out.printlnpublish.save_businessnew Save_business new BusinessEntityArrayListnew BusinessEntitynew NameArrayList new NameCreated by Client Authentication Example;