publish

Description

Publishes Web service information to a UDDI registry.

Syntax

Command line:

publish 
[-inquiryURL URL] 
[-publishURL URL] 
[-user user_name] 
[-business business_name] 
[-pass password] 
[-serviceURL URL] 
[-publishName name] 
[-tmodel tModel_name] 

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="publish" > <wst_antTask command="publish"
[inquiryURL=“URL”] 
[publishURL=“URL”] 
[user=“user_name”] 
[business= “business_name”] 
[pass=“password”]
[serviceURL=“URL”] 
[publishName=“name”] 
[tmodel=“tModel_name” />

Where:

Option

Description

inquiryURL

Inquiry URL used to connect to the registry. Required.

publishURL

Publish URL used to connect to the registry. Required.

user

User name used to connect to the UDDI registry URL. Required.

business

Provide the business name if publishing a business or specify the business key if publishing a service.

pass

The password used to connect to the UDDI registry URL.

serviceURL

The service URL of the service to be published.

publishName

Specifies a name with which the tModel can be published. to publish a service or a tModel, you must specify the publish.

tmodel

Specifies the tModel key that associates the service to a specific tModel.

Examples

Example 1

This command publishes information about “testservice” to the IBM test registry:

wstool publish -inquiryURL http://uddi.ibm.com/testregistry/inquiryapi 
-publishURL https://uddi.ibm.com/testregistry/publishapi -user testuser 
-business 6B9DD2D0-D81E-11D7-A0BA-000629DC0A13 -pass secret -serviceURL http://webservicehost:8080/ws/services/testservice -publishName testpublish -tmodel 216DD2D0-A21E

Ant build example:

<wst_antTask command="publish"  inquiryURL="https://uddi.ibm.com/testregistry/inquiryapi" publishURL="https://uddi.ibm.com/testregistry/publishapi" user="me" pass="secret" business="myTestBusinessOnly"/>