Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Configure Web service client port information with the wsadmin tool

 

A Web service can have multiple ports. You can view and configure the port attributes for each defined Web service port.

If you have not deployed the enterprise archive (EAR) file yet, you need to have it ready or already Deploying Web services applications onto application servers into WebSphere Application Server.

For more information about wsadmin options, review Options for the AdminApp object install, installInteractive, edit, editInteractive, update, and updateInteractive commands

 

Overview

This task supports configuring binding attributes that are associated with the Web service client port, including synchronization timeout, overridden endpoint URL and transport attributes with the WebServicesClientBindPortInfo command-line option. A typical usage scenario for this command-line option is to customize the timeout value of the client so that the client waits longer when it is configured to use a Java Message Service (JMS) transport to access a Web service.

 

Procedure

  1. Launch a scripting command.

  2. At the wsadmin command prompt, enter the command syntax. You can use install, installInteractive, edit or editInteractive options. The following example is the correct syntax form:

    $AdminApp install app_name {-usedefaultbindings 
    -deployejb -WebServicesClientBindPortInfo {{module_name EJB_name
    Web_service port timeout basic_authentication_id basic_authentication_password
    SSL_alias overridden_endpoint overridden_binding_namespace }...}}
    The previous example indicates that the port information of multiple ports can be changed using one WebServicesClientBindPortInfo command, where:

  3. Save the configuration changes with the $AdminConfig save command:

 

Results

The client port information that is associated with the Web service client port are configured.

 

Example

$AdminApp installInteractive MultiEjbJar.ear {-WebServicesClientBindPortInfo {{ejbclientonly.jar Exchange service/StockQuoteService StockQuote 6000 jsmith js9password level3ssl 
{ejbclientonly.jar Exchange service/StockQuoteService StockQuote2 9000 {}{}{}{}{}}}

 

What to do next

Now you can finish any other configurations, start or restart the application, and verify expected behavior of the Web service.


}
Web services client bindings
Configuring Web service client-preferred port mappings with the wsadmin tool

 

Related Reference


Options for the AdminApp object install, installInteractive, edit, editInteractive, update, and updateInteractive commands