Adding a target service to a gateway service configuration using the wsadmin tool

To run the command, use the AdminTask object of the wsadmin scripting client.

[iSeries] The wsadmin scripting client is run from Qshell. For more information, see the topic "Configure Qshell to run WebSphere® Application Server scripts".

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:

For additional details of the command properties, see the related reference topic.

Purpose

This command adds a target service to a gateway service.

Command name
addWSGWTargetService
Target
ObjectName of the GatewayService object.
Result
ObjectName of the created TargetService object.

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.

Required parameters

name
The name of the target service.

Conditional parameters

targetDestination
The name of the target destination.
targetService
The name of the target outbound service.

Optional parameters

targetBus
The name of the service integration bus that contains the target service.

Example

set gwTarget [$AdminTask addWSGWTargetService $gwService {-name "AnotherTarget" -targetService "AnotherService"}]



Related concepts
Target services and gateway services
Related tasks
Creating a new gateway service configuration
Modifying an existing gateway service configuration
Related reference
Creating a new gateway service configuration using the wsadmin tool
Deleting a gateway service configuration using the wsadmin tool
Removing a target service from a gateway service configuration using the wsadmin tool
Creating a new proxy service configuration using the wsadmin tool
Deleting a proxy service configuration using the wsadmin tool
Deleting a gateway instance using the wsadmin tool
Working with the Web services gateway using the wsadmin tool
Related information
Target services [Settings]
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 4:28:44 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-mp&topic=rwsg_cli_tgt_add
File name: rwsg_cli_tgt_add.html