allowMethods

Description

Makes Web service methods available to clients.

Syntax

Command line:

allowMethods
entity

Ant build file:

<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/>
<target name="allowmethods" > <wst_antTask command="allowmethods"
entity=”entity” >

Where:

Option

Description

entity

method:CollectionName/ServiceName/m1, m2, m3 – identifies the Web service to which the methods being made available belong, and a comma-separated list of method names that are available to a client.

The entity must be in quotes.

Examples

Example 1

This command makes testmethod1 and testmethod2 available to a Web service client that belongs to MyWebService:

wstool allowMethods “method:WebColl/MyWebService/testmethod1, testmethod2”

Ant build example:

<wst_antTask command="allowMethods"  entity="method:myCollection/myService/myMethod"/>