392 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
8.2.4 Fixing the Service References
In this section, we discuss how to fix the Service References.
Fixing Service Ref for activitysupplier project
The Web service of the BrokerServiceBean is referenced by the
ActivityMessageEJB in the activitysupplier-ejb project. To give proper reference,
complete the following steps:
1. Open the Deployment Descriptor of activitysupplier-ejb project in Deployment
Descriptor editor. Navigate to References tab ActivityMessageEJB
ServiceRef service/WebServiceBroker.
2. Click Remove and remove this service reference as shown in Figure 8-30.
Figure 8-30 Service references for EJBs
Chapter 8. Migrating Adventure Builder to WebSphere Application Server 393
3. Now Navigate to the References tab and select ActivityMessageEJB. Then,
click Add as shown in Figure 8-31.
Figure 8-31 Window after existing service reference removed
394 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
4. You see a window similar to Figure 8-32. Select Service reference and click
Next.
Figure 8-32 Add a new service reference
Chapter 8. Migrating Adventure Builder to WebSphere Application Server 395
5. Choose service/BrokerServiceBeanService as shown in Figure 8-33 and
click Finish.
Figure 8-33 Select the service reference
6. Click the ejb/local/activitysupplier/ActivityPurchaseOrder resource
reference in ActivityMessageEJB to verify whether the service reference is
added.
7. Now navigate to Deployment Descriptor WS Bindings. In Services
Reference section, click Add. Select service/BrokerServiceBeanService
and click OK.
8. In the Service Reference Details section, add the location of the deployed
WSDL file by browsing to the
ejbModule/META-INF/wsdl/BrokerServiceBean.wsdl file.
9. The Port Qualified Name section is filled automatically.
396 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
After all changes, the WS Binding tab page should look similar to Figure 8-34.
Figure 8-34 WS Binding for service ref
10.Web service client code is generated automatically in
com.sun.j2ee.blueprints.opc.webservicebroker.provider package.
Fixing Service Ref for airlinesupplier project
Web service of BrokerServiceBean is referenced by AirlineMessageEJB in
airlinesupplier-ejb project. To give proper service reference for this Web service
repeat the steps 1 on page 392 through 8 in “Fixing Service Ref for
activitysupplier project on page 392. In all these steps, use
AirlineMessageEJB
in place of
ActivityMessageEJB.
Fixing Service Ref for lodgingsupplier project
The Web service of BrokerServiceBean is referenced by LodgingMessageEJB in
the LodgingSupplier-EJB project. To give proper service reference for this Web
service repeat steps 1 on page 392 through 8 in “Fixing Service Ref for
activitysupplier project on page 392. In all these steps, use
LodgingMessageEJB in place of ActivityMessageEJB.

Get Migrating from WebSphere Application Server Community Edition to WebSphere Application Server now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.