updateLMService command

Use the updateLMService command to modify a local mapping service.

A local mapping service identifies a specific service provider. Use the updateLMService command to modify the properties of the local mapping service, which changes how requests are intercepted.

When you update a local mapping service by using the updateLMService command, you can update any of the parameters that were specified when that local mapping service was created. You can also use the updateLMService command to attach a different service map to your local mapping service, rather than using the detachServiceMap and attachServiceMap commands consecutively. After you have updated the local mapping service to use a different service map, any requests that the local mapping service intercepts can be rerouted or transformed according to the rules in the new service map, if that updated local mapping service is started.

Target object

The name of a local mapping service, as returned by the createLMService command.

Required parameters

None

Optional parameters

-name
A name for the local mapping service. The name must be unique and non-empty.
-description
A description of the local mapping service.
-attachedSMName
The name of the service map that you want to attach to the local mapping service that you are updating. If a service map is attached to the local mapping service you selected, and you select a different service map from the one that was attached, then the original service map is detached when the new service map is attached.
-consumedService
The following parameters are required to identify the properties of the service that requests are sent to:
-targetEndpoint
The URL value of the service provider that this local mapping service uses to intercept requests that are sent by a service client.
-namespace
The namespace for the target endpoint or port.
-serviceName
The name of the service request that the local mapping service intercepts.
-portName
The name of the port associated with the service request that the local mapping service intercepts.
-portType
The type of the port associated with the service request that the local mapping service intercepts.
Restriction: The only supported request type is JAX-WS.
Note: All parameters are optional. Specify a parameter only if you want to update it. If no parameters are specified then the local mapping service is not updated.

Example usage

Use these examples to specify the parameter values for updating a local mapping service.

Using Jython:

Input message:
AdminTask.updateLMService('StockQuoteService', '-name StockQuoteServiceV2 -description "Stock Quote JAX-WS service version 2" -attachedSMName Route -consumedService [-targetEndpoint http://localhost:9080/StockQuote/sqservice2 -namespace http://test2 -serviceName sqservice2 -portName sqport2 -portType sqType2]') 
Output message:
CWSMW0249I: Successfully updated local mapping service "StockQuoteService". 

Using Jacl:

Input message:
$AdminTask updateLMService StockQuoteService {-name StockQuoteServiceV2 -description "Stock Quote JAX-WS service version 2" -attachedSMName Route -consumedService {-targetEndpoint http://localhost:9080/StockQuote/sqservice2 -namespace http://test2 -serviceName sqservice2 -portName sqport2 -portType sqType2}} 
Output message:
CWSMW0249I: Successfully updated local mapping service "StockQuoteService". 

Icon that indicates the type of topic Reference topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Tuesday, 22 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=rsm_updatelmservicecmd
File name: rsm_updatelmservicecmd.html