Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Running Methods and Scripts for Dynamic Service Activator Services (SRC CLI)

 

To run a method or script for the Dynamic Service Activator Web service interface:

  • Run the test dsa dsa-service command.

    For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service command.

    where:

    • invoke-gateway-extension—Invokes a servlet that has been created and deployed in the Web Services Gateway Web application server.

    • invoke-script—Manages all operations involved with invoking scripts.

    • subscriber-activate-service—Activates subscribers’ subscriptions to services.

    • subscriber-deactivate-service—Deactivates subscribers’ subscriptions to services.

    • subscriber-login—Logs in subscribers.

    • subscriber-logout—Logs out subscribers.

    • subscriber-modify-service—Modifies subscriptions.

    • subscriber-read-subscription—Determines whether a subscriber accesses services through the SRC owner’s network and obtains all of that subscriber’s subscriptions.

Testing Subscriber Logins and Logouts (SRC CLI)

These methods support only subscribers who are identified by their IP addresses. These methods do not support subscribers who are identified by the names they use to log in or by their DNs.

Use the following commands to test the methods that log in and log out subscribers:

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service commands.

Testing Subscriber Access to Subscriptions (SRC CLI)

Use the following command to test the method that determines whether a subscriber accesses services through the SRC owner’s network and obtains all of that subscriber’s subscriptions:

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service commands.

Testing Subscription Activations and Deactivations (SRC CLI)

Use the following commands to test the methods that activate and deactivate subscribers’ subscriptions to services:

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service commands.

Testing Subscription Modifications (SRC CLI)

Use the following command to test the method that modifies subscribers’ subscriptions to services:

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service commands.

Testing Script Invocations (SRC CLI)

Use the following command to test the method that manages all operations involved with invoking scripts:

This method retrieves requests to invoke scripts from the gateway client, authenticates the gateway client, verifies the arguments supplied by the gateway client, communicates with other SRC components, and returns values to the gateway client.

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service invoke-script command.

Testing Gateway Extension Invocations (SRC CLI)

Use the following command to test the method that invokes a servlet that has been created and deployed in the Web Services Gateway Web application server:

The servlet can be a standalone application, or it can be part of a WAR or EAR file. When deployed, servlets invoked with this method should be accessible only from the local host.

For the document literal implementation of Dynamic Service Activator (DSA2), issue the test dsa dsa2-service invoke-gateway-extension command.

Example: Testing Subscriber Access to Subscriptions

To view a list of the Dynamic Service Activator client’s subscriptions:

  1. Issue the test dsa dsa-service subscriber-read-subscription command.
  2. Enter the required information (such as client ID, client password, and subscriber address). The entered data must match the data you configured.

    For example, this information is provided for Fred: