950 WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile
7. Click Finish and save your changes to the master configuration.
27.2 Local mapping service
The local mapping service intercepts requests and responses between service clients and
service providers. Each local mapping service must have a service map attached to it for the
service mapping to work. If a local mapping service does not have an associated service
map, the request is routed to the original target service specified by the service client.
27.2.1 Creating a local mapping service
To create a local mapping service, perform the following steps:
1. From the console, navigate to Service integration Service mapping Local
mapping services. Then, click New.
2. Enter the name of the local mapping service and the description, and then, click Next.
3. Choose the service map that you want to attach to the local mapping service, as shown in
Figure 27-5.
Figure 27-5 Attaching a service map
If you choose to attach a service map, in the next panel, you only need to enter the
endpoint address of the service provider.
In this example, the NewServiceMap is selected. Click Next.
4. In the following panel, you must specify the intercepted provider details as shown in
Figure 27-6 on page 951, and then, click Finish. Because a service map was selected in
the previous panel, only the endpoint access information needs to be entered. The local
mapping service only intercepts requests sent from Java API for XML Web Services
(JAX-WS) service clients that try to access a service by using the supplied endpoint
address.
Chapter 27. Working with Service Mapping 951
Figure 27-6 Client request intercept information
5. The summary will appear as shown in Figure 27-7.
Figure 27-7 Create local mapping service
You also can create a local mapping service by using administrative commands with the
wsadmin tool (see Example 27-3):
AdminTask.createLMService('[-name DemoJAXWSProject -description "My Demo JAX-WS
Project" -attachSMName NewServiceMap -consumedService [-serviceName
MyServiceService -portName MyServicePort -namespace http://test -targetEndpoint
http://localhost:9080/DemoJAXWSProject/MyEnhancedServiceService -portType
MyServiceDelegate]]')
Example 27-3 Creating local service mapping with commands
wsadmin.sh -lang jython
wsadmin>AdminTask.createLMService('[-name DemoJAXWSProject -description "My Demo
JAX-WS Project" -attachSMName NewServiceMap -consumedService [-serviceName
MyServiceService -portName MyServicePort -namespace http://test -targetEndpoint

Get WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.