export  getTMjar

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

exposeComponent

Description

Exposes an EAServer component as a Web service.

Syntax

Command line:

exposeComponent 
[-collection webCollection] 
[-service webService] 
[-tm typeMapping] 
[-tmJar jarFile] 
entity

Ant build file:

<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. ws is the default.

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.

Examples

Example 1

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"/>




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