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.
The name of a local mapping service, as returned by the createLMService command.
None
Use these examples to specify the parameter values for updating a local mapping service.
Using Jython:
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]')
CWSMW0249I: Successfully updated local mapping service "StockQuoteService".
Using Jacl:
$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}}
CWSMW0249I: Successfully updated local mapping service "StockQuoteService".