createLMService command

Use the createLMService command to create a local mapping service, to which a service map can be attached.

A local mapping service identifies a specific service provider. When you use this command to create a local mapping service, and if you have created a service map by using the installServiceMap command, you can attach that service map to the local mapping service by using the -attachSMName parameter, or by using the attachServiceMap command. The service map then reroutes or transforms messages that are intercepted by the associated local mapping service.

Target object

None

Required parameters

-consumedService
The following parameters are required to identify the properties of the service that requests are sent to:
-targetEndpoint
The URL 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 request that the local mapping service intercepts.
-portName
The name of the port associated with the request that the local mapping service intercepts.
Restriction: The only supported request type is JAX-WS.
-name
A name for the local mapping service. Names must be unique within a cell, cannot begin with a number, dot or minus character, and cannot contain unsupported characters. The following characters are not supported:
\/,.#$@:;"*?<>()|=+&%'![]{}
(space)
the character combination ]]> 

Optional parameters

-description
A description of the local mapping service.
-attachSMName
The name of the service map to which you want to attach the local mapping service that you are creating.
-portType
The type of the port associated with the request that the local mapping service intercepts. If you want to use this parameter, it must be set when you specify the -consumedService parameter.

Example usage

Specify the parameter values for a local mapping service for a service client and a service provider that are both hosted on the same application.

Using Jython:

Input message:
AdminTask.createLMService('[-name StockQuoteService -description "Stock Quote service" -attachSMName Route -consumedService [-targetEndpoint http://localhost:9080/StockQuote/sqservice -namespace http://test -serviceName sqservice -portName sqport -portType sqType]]')
Output message:
StockQuoteService 

Using Jacl:

Input message:
$AdminTask createLMService {-name StockQuoteService -description "Stock Quote service" -attachSMName Route -consumedService {-targetEndpoint http://localhost:9080/StockQuote/sqservice -namespace http://test -serviceName sqservice -portName sqport -portType sqType}}
Output message:
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_createlmservicecmd
File name: rsm_createlmservicecmd.html