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"
Using Oracle JDeveloper, you can create a connection to the Oracle Service Registry and create a client that will use this connection.
To create a connection between the Oracle Service Registry and JDeveloper:
Right-click Connections>New... in the Connection Navigator.
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"
Click Next, then click Test Connection to verify that you have successfully connected to the Registry.
If the test is successful, click Finish to create the connection.
Once you have established a connection to Oracle Service Registry from JDeveloper, you can take advantage of JDeveloper's integration features.
Right-click on an Oracle Service Registry connection in the Connection Navigator and select Find Web Services.
Enter a search string to find your service. Use the % symbol to perform a wildcard search.
Select the interface, or portType, for the published service.
Select the service implementing the interface.
Review the information returned for the service to verify it is the one you are searching for.
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.
Click Open the endpoint of this service in a Web browser to test the service.
Click Display a report describing this service to view a report summarizing the UDDI metadata stored in the Registry for the selected service.
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.
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:
On the Project menu in Visual Studio .NET, click Add Web Reference.
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 18 shows how to browse/search Oracle Service Registry via the Add Web Reference Wizard.
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.