To run the command, use the AdminTask object of the wsadmin scripting client.
This command is only valid when used with WebSphere® Application Server Version 6 and later application servers. Do not use it with earlier versions.
Command-line help is provided for service integration bus 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"}]