Article ID: 939689 - Last Review: August 15, 2007 - Revision: 1.1
How to publish a Web service in Universal Description, Discovery and Integration (UDDI), and how to use the service in Visual Studio 2005 and in Office InfoPath
In a browser, visit the UDDI Services home page. UDDI Services is installed on Microsoft Windows Server 2003. To access UDDI Services, visit the following Web site:
http://server_name/uddi
Note If you are using a security-enhanced server, visit the following Web site:
https://server_name/uddi
On the UDDI Services home page, click Publish.
Under Publish, click tModels, and then click Add tModel.
Under Actions, click Edit to change the name of the tModel.
In the Name box, type NewtModelName, and then click Update.
Click Categories tab under NewtModelName, and then click Add Category.
Under Categorizations, click uddi-org:types, and then click These types are used for tModels.
Under Select a category or subcategory, click Specification for a web service. Click Specification for a web service described in WSDL, and then click Add Category.
Under NewtModelName, click the Overview Document tab.
On the Overview Document tab, click Edit.
In the Overview Document URL box, type the following URL, and then click Update:
http://ComputerName/Service1.asmx?WSDL
On the Overview Document tab, click the URL that you added in step 11 to verify that the browser correctly displays the Web Service Description Language (WSDL) page.
Step 5: Add the UDDI published Web service to an InfoPath form
Start InfoPath.
On the File menu, click Design a Form.
In the Design a Form dialog box, click New from Data Source under Design a new form. The Data Source Setup Wizard starts.
In the Data Source Setup Wizard, click to select Web service, and then click Next.
Click to select the Receive data option, and then click Next.
In the Enter the location of the Web service you want to use as your data source box, type the following URL, and then click Search UDDI:
http://computer_name/uddi/inquire.asmx
Note You can type % to view a list of all Web services.
In the Search Web Service dialog box, click to select Service1, and then click OK.
In the Data Source dialog box, expand dataFields.
Locate the "Web Service method result" field, and then drag the "Web Service method result" field to the form. Put the "Web Service method result" field in the Drag data fields here section of the form.
Click Preview Form.
Click Run Query to test the Web service.
The text "Hello World" appears in a box on the form.
Typically, tModels are used to provide technical information about an interface. For example,
the WSDL file describes the
conventions that an interface supports. You can also use tModels to represent
an organized unit of descriptive data such as an identification scheme or a categorization
scheme. The way that you use tModels to implement Web services in your organization may vary depending on the organization's Web services publishing data model.
For more information about how to use UDDI for Web service description and discovery, visit the following Microsoft Developer Network (MSDN) Web sites: