UDDI from Developer Tools  Locate

This section describes how to access UDDI from the following development tools:

Developer tools include wizards for searching a UDDI registry and publishing to a UDDI registry. We can say that UDDI searching and publishing rely on getting and publishing WSDL files.

Figure 16 shows how a WSDL is mapped to UDDI. For more information, see OASIS Technical Note "Using WSDL in a UDDI Registry"

Figure 16. WSDL Mapping to UDDI

WSDL Mapping to UDDI

UDDI from Oracle JDeveloper  Locate

Using Oracle JDeveloper, you can create a connection to the Oracle Service Registry and create a client that will use this connection.

Connecting to Oracle Service Registry from JDeveloper  Locate

To create a connection between the Oracle Service Registry and JDeveloper:

  1. Right-click Connections>New... in the Connection Navigator.

  2. Specify a connection name.

    In the Connection Wizard, provide a connection name and specify the UDDI inquiry endpoint URL. The syntax of this URL is:


    ohs_host and ohs_Port have the following definitions:

    • ohs_host is the address of the Oracle WebLogic Server host machine.; for example, server07.company.com

    • ohs_Port is the HTTP listener port assigned to OHS

    • registry_context is context root used to access the target registry instance, such as "registry" or "registrypub"

    For example:


  3. Click Next, then click Test Connection to verify that you have successfully connected to the Registry.

  4. If the test is successful, click Finish to create the connection.

Using the JDeveloper Integration  Locate

Once you have established a connection to Oracle Service Registry from JDeveloper, you can take advantage of JDeveloper's integration features.

  1. Right-click on an Oracle Service Registry connection in the Connection Navigator and select Find Web Services.

  2. Enter a search string to find your service. Use the % symbol to perform a wildcard search.

  3. Select the interface, or portType, for the published service.

  4. Select the service implementing the interface.

  5. Review the information returned for the service to verify it is the one you are searching for.

  6. Select the Generate stub code into the project option to generate a client-side stub or proxy for the selected service.

    JDeveloper generates the stub based on the WSDL published to the Registry.

  7. Click Open the endpoint of this service in a Web browser to test the service.

  8. Click Display a report describing this service to view a report summarizing the UDDI metadata stored in the Registry for the selected service.

  9. Click Just add the business providing this service to the UDDI browser to add the service provider as a persisted entry under the UDDI Registry connection node in the Connection Navigator.

UDDI from MS Visual Studio  Locate

Microsoft Visual Studio .NET 2003 includes a wizard for accessing a UDDI registry that allows you to find a WSDL/ASMX file in the UDDI registry. Once you have found a WSDL, you can add a web reference to the Web service definition file to your project.

To start the Web Reference Wizard:

  1. On the Project menu in Visual Studio .NET, click Add Web Reference.

  2. The Add Web Reference dialog box shown in Figure 17 appears. Enter the URI of a UDDI registry or the URI of a WSDL document representing the Web service.

Figure 17. Add Web Reference Default

Add Web Reference Default

Figure 18 shows how to browse/search Oracle Service Registry via the Add Web Reference Wizard.

Figure 18. Searching Oracle Service Registry via Web Reference Wizard

Searching Oracle Service Registry via Web Reference Wizard

Figure 19. Add Web Reference - Found Web service

Add Web Reference - Found Web service

If you find a WSDL file, the wizard shown in Figure 19 parses the WSDL file displaying Web service method. Then, you can click Add Reference button to add the reference to your project.