Unpublishes Web service information from a UDDI registry.
unpublish [-inquiryURL URL] [-publishURL URL] [-user user_name] [-business business_name] [-pass password] [-serviceURL URL] [-serviceKey key] [-tmodel true]
<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/> <target name="unpublish" > <wst_antTask command="unpublish" [inquiryURL=“URL”] [publishURL=“URL”] [user=“user_name”] [business= “business_name”] [pass=“password”] [serviceURL=“URL”] [serviceKey=“key”] [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 unpublishing a business or specify the business key if unpublishing a service. |
pass |
The password used to connect to the UDDI registry URL. |
serviceURL |
The service URL of the service being unpublished. |
serviceKey |
You must specify a service key to unpublish a tModel. |
tmodel |
Specifies the tModel key that associates the service to a specific tModel. |
This command unpublishes information regarding “testservice” from TrySybase registry:
wstool unpublish -inquiryURL http://uddi.trysybase.com:8080/uddi/inquiry -publishURL http://uddi.trysybase.com:8080/uddi/publish -user testuser -business 6B9DD2D0-D81E-11D7-A0BA-000629DC0A13 -pass secret -serviceURL http://webservicehost:8080/ws/services/testservice -serviceKey 1234 -tmodel 216DD2D0-A21E
Ant build example:
<wst_antTask command="unpublish" inquiryURL="http://uddi.trysybase.com:8080/uddi/inquiry" publishURL="http://uddi.trysybase.com:8080/uddi/publish" user="me" pass="secret" business="myTestBusinessOnly"/>