Security commands  remove

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

add

Description

Adds existing roles to a Web service or Web service method.

Syntax

Command line:

add 
[-sourceEntity r1, r2, r3] 
TargetEntity

Ant build file:

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

Where:

Option

Description

sourceEntity

A comma-separated list of roles to be added in the format of:

role:role1, role2

targetEntity

The target entity to which the roles are assigned:

  • method:CollectionName/ServiceName/MethodName – identifies the method to which the roles are added.

  • service:CollectionName/ServiceName – identifies the Web service to which the roles are added.

Examples

Example 1

This example adds role1 and role2 to myMethod:

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

Example 2

This example adds the role everybody to myWebServ:

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

Ant build example:

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

NoteEntities must be specified in quotes.





Copyright © 2005. Sybase Inc. All rights reserved. remove