A Web service can have multiple ports. You can view and configure the port attributes for each defined Web service port.
Before you begin
If you have not deployed the enterprise archive (EAR) file yet, you need to have it ready or already deployed into WebSphere Application Server.For more information about wsadmin options, review Options for the AdminApp object install, installInteractive, edit, editInteractive, update, and updateInteractive commands
Why and when to perform this task
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.Steps for this task
$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:
Result
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 http://fastball.houston.ibm.com/newURL http://fastball.houston.ibm.com/newBindName}} {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.Related tasks
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