!--a11y-->
Publishing a Web Service Definition as a
tModel 
tModels are core components of UDDI. They provide a common point of reference that allows a technical interface to be registered, and compatible implementations of those interfaces to be easily identified. References to the tModel serve to identify the properties associated with a given service binding.
Web service registrations reference tModels in order to indicate their compliance with the service type definition.
· Endpoint implementation
· Virtual Interface and Web service definition (WSD) for that endpoint
For more information about creating endpoint implementation, VI, and WSD, see also Creating a Web Service.
To publish your WSD in UDDI as a tModel, proceed as follows:
...
1. In SAP NetWeaver Developer Studio, select the Web service definition that you have created and choose the UDDI tab.

In addition to the procedure described here, you can publish your WSD by invoking the UDDI client by entering http://<host>:<port>/uddiclient in the address bar in your browser and following the steps of the tool.
2. To publish your WSD as a tModel, choose Publish.To update a tModel, select it from the tModel Publications frame and choose Update.

3. In the window that is displayed, enter a user name and password for connecting to the SAP J2EE Engine.
This user name and password are kept until you do restart the Developer Studio or choose Window ® Preferences ® Web Services ® Reset Upload Username/Password.
If you want the VI and WSD to be automatically uploaded when you change and save them, then choose Enable Auto upload on save.

This starts the SAP UDDI client browser.
4. Select the UDDI registry where you want to publish your WSD and a enter user name and password, specified in Initial Configuring.

The user name and the password are registry-specific. The individual operator sites will designate their own procedures for getting the credentials.
5. Enter the name of the tModel that will represent this Web service definition in the Name tab.
The service definition publication page is used to enter specific UDDI information for the WSD before it is published. If the service definition has already been published, its tModel key is displayed and buttons for updating or publishing the definition as a new tModel are available.

Enter information in rest of the tabs for specifying your tModel.

If you have started the UDDI client from the browser directly and not from the NetWeaver Developer Studio, then you have to enter the WSDL URL of your WSD. To do this, choose the Service Definition Detailstab.

6. Choose Publish.
Your Web service definition is published successfully and its tModel key is displayed. Choose OK to close the window.
7. Choose Save.
The tModel is added in the tModel Publications window.

See also:
Publishing a Web Service as a Business Service
