publish  Server management commands

Chapter 8: Using wstool, wstkeytool, wstant, and wstkeytoolant

unpublish

Description

Unpublishes Web service information from a UDDI registry.

Syntax

Command line:

unpublish 
[-inquiryURL URL] 
[-publishURL URL] 
[-user user_name] 
[-business business_name] 
[-pass password] 
[-serviceURL URL] 
[-serviceKey key] 
[-tmodel true] 

Ant build file:

<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.

Examples

Example 1

This command unpublishes information regarding “testservice” from the IBM test registry:

wstool unpublish -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 -serviceKey 1234 -tmodel 216DD2D0-A21E

Ant build example:

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




Copyright © 2005. Sybase Inc. All rights reserved. Server management commands