322 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
Import the Web resources using the following steps:
1. Click File Import to launch the Import wizard as shown in Figure 7-87.
2. Click General File System. Click Next.
3. Complete the following fields as shown in Figure 7-89:
From directory
<adventure_src>\src\SG247433\consumerwebsite\adventure\web
In our example, we used
C:\adventure1.0.1\src\SG247433\consumerwebsite\adventure\web.
Into folder
adventure/WebContent
4. Select the “Overwrite existing resources without warning” option and the
“Create selected folders only” option.
Chapter 7. Developing the application on WebSphere Application Server Community Edition 323
5. Click Finish complete the import of Web resources.
Figure 7-89 Import sources - Web resources
324 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
Disabling HTML validation
Disable HTML validation for the project using the following steps:
1. In the Project Explorer, right-click adventure and select Properties as shown
in Figure 7-90.
Figure 7-90 Project Explorer window
Chapter 7. Developing the application on WebSphere Application Server Community Edition 325
2. In the left pane, click Validation. Under Validation, select the “Override
validation preferences” option and clear the check boxes for HTML Syntax
Validator as shown in Figure 7-91.
Figure 7-91 Properties for adventure
3. Click Apply and click OK to return to the workbench.
Generating Web Services Client Code
The ConsumerWebsite application uses Web Services
OpcOrderTrackingService and OpcPurchaseOrderService provided by the OPC
application. To access these Web services, you need to generate the Web
service client code.
326 Migrating from WebSphere Application Server Community Edition to WebSphere Application Server
To generate the Web service client code for OpcOrderTrackingService and
OpcPurchaseOrderService, use the following steps:
1. In the Project Explorer, click adventure WebContent WEB-INF
wsdl. Double-click OpcOrderTrackingService.wsdl to open the file as
shown in Figure 7-92.
Figure 7-92 Generate Web Service Client - Select wsdl

Get Migrating from WebSphere Application Server Community Edition to WebSphere Application Server 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.