You create a dynamic Web project and add it to an enterprise application project. At a later stage in the dynamic Web project, you create a Web service proxy and client application which you use to consume the Web service.
1. In the Java EE perspective, choose File → New → Project.
The New Project window opens.
2. In the list of wizards, choose Web → Dynamic Web Project, and then choose Next.
3. In the Project name field, enter HelloWorldWEB.
4. Choose Add project to an EAR, and then choose New.
The EAR Application Project wizard opens.
5. In the Project name field of the wizard, enter HelloWorldWEBEAR, and then choose Finish.
6. In the Create a Dynamic Web project wizard, choose Finish.
The HelloWorldWEB and the HelloWorldWEBEAR projects appear in the Project Explorer.