Exposes an EAServer component as a Web service.
exposeComponent [-collection webCollection] [-service webService] [-tm typeMapping] [-tmJar jarFile] entity
<taskdef name="wst_antTask" classname="com.sybase.wst.wstool.ant.AntTask"/> <target name="exposeComponent" > <wst_antTask command="exposeComponent" [collection=“webCollection”] [service=“webService”] [tm=“typeMapping”] [tmJar=“jarFile”] entity =“package/component” >
Where:
Option |
Description |
---|---|
collection |
Specifies the name of the Web service
collection, to which the Web service belongs. |
service |
Specifies the Web service name to which the component is exposed to. The default is PackageName_ComponentName. |
tm |
Specifies the type mapping file name for any undefined custom datatypes. |
tmJar |
Specifies the full path to the JAR file that contains any custom datatype mappings required by the component. |
entity |
The name of the EAServer package/component being exposed. |
This command exposes myPkg/myComp as a Web service:
wstool exposeComponent -tm myTM.map -tmJar myTM.jar myPkg/myComp
Ant build example:
<wst_antTask command="exposeComponent" entity="component:myPackage/myComponent"/>