remove

Description

Removes roles from a Web service or Web service method.

Syntax

Command line:

remove 
[-sourceEntity r1, r2, r3] 
TargetEntity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="remove" > <wst_antTask command="remove"
[sourceEntity=“r1, r2, r3”] 
TargetEntity=”entity” >

Where:

Option

Description

sourceEntity

A comma-separated list of roles to be removed from the format of:

role:role1, role2

targetEntity

The target entity to which the roles are removed:

  • method:CollectionName/ServiceName/MethodName – identifies the method from which the roles are removed.

  • service:CollectionName/ServiceName – identifies the Web service from which the roles are removed.

Examples

Example 1

This example removes role1 and role2 from myMethod:

wstool remove “role:role1, role2” “method:WebColl/WebServ/myMethod”

Example 2

This example removes the role everybody from myWebServ:

wstool remove “role:everybody” “service:WebColl/myWebServ”

Ant build example:

<wst_antTask command="remove" sourceentity="role:testRole" targetentity="service:myCollection/myService"/>

NoteEntities must be specified in quotes.