Home > Advanced Programming Techni... > Implementing Web Services > Creating a Web Service Refe...
When you create a Web service reference based on a WSDL, you need to decide how to locate the WSDL. You can locate a WSDL in two ways:
By searching a Universal Description, Discovery and Integration (UDDI) registry
by entering the URL to the WSDL document
A UDDI registry is a directory where businesses register their Web services.
Topics:
Creating a Web Service Reference by Searching a UDDI Registry
Creating a Web Service Reference by Specifying a WSDL Document
To create a new Web service by searching a UDDI registry:
Navigate to the Web Service References page. See "Accessing the Web Service References Page".
Click Create.
When prompted to search a UDDI registry to find a WSDL, click Yes.
For UDDI Location you can either:
Enter a URL endpoint to a UDDI registry.
Click the List icon and select a UDDI registry.
For Search, specify the following:
Search Type - Specify whether to search for a business name or a service name. You cannot search for both.
Name - Enter the business name or service name to search for. Use the percent (%) symbol as a wildcard character.
Optionally indicate if the search should be case-sensitive or an exact match.
Click Search.
When the search results appear, make a selection and click Next.
A summary page appears describing the selected Web service.
Review your selection and click Next to continue.
The URL to the WSDL document displays in the WSDL Location field.
Click Finish.
The Web service reference is added to the Web Service References Repository.
To create a new Web service by specifying a URL to a specific WSDL document:
Navigate to the Web Service References page. See "Accessing the Web Service References Page".
Click Create.
When prompted to search a UDDI registry to find a WSDL, click No.
In WSDL Location, enter the URL to the WSDL document.
Click Finish.
The Web service reference is added to the Web Service References Repository.
To create a new Web service reference manually:
Navigate to the Web Service References page. See "Accessing the Web Service References Page".
Click Create.
When prompted to search a UDDI registry to find a WSDL, click No.
From the Tasks list, click Create Web Service Reference Manually.
The Create/Edit Web Service page appears.
In Name, enter a name to identify the reference.
Under Service Description:
URL - Enter the URL endpoint of the Web service.
Action - Enter the action of the Web service (optional).
Proxy - Enter a proxy if you wish to override the application proxy for this service.
Basic Authentication - Choose whether the Web service requires authentication. Select Yes or No.
For SOAP Envelop, enter the SOAP envelope for this request.
For Store Response in Collection, enter the name of a collection to store the response (optional).
Click Create.
The Web service reference is added to the Web Service References Repository.