The command described in this topic is run using the AdminTask object of the wsadmin scripting client.
This command is only valid when run against WebSphere Application Server Version 6 and later application servers. Do not run it against earlier versions.
Command-line help is provided with each of the commands:
wsadmin> $AdminTask help WSGateway
wsadmin> $AdminTask help command_name
For additional details of the command properties, see the related reference topic.
This command adds a target service to a gateway service.
The command adds the identified target as a target service to the gateway service.
The targetDestination parameter identifies a destination that might be within the same service integration bus as the gateway destination or in another bus (in which case the bus name must be specified).
You must specify one of targetDestination or targetService.
The gateway destination property com.ibm.websphere.wsgw.targets is updated to contain the new list of target destinations.
set gwTarget [$AdminTask addWSGWTargetService $gwService {-name "AnotherTarget" -targetService "AnotherService"}]