Designing the WSDL using the WSDL editor
In this section, we create a WSDL with two operations: getAccount (using an account ID to retrieve an account) and getCustomer (using a customer ID to retrieve a customer).
The WSDL editor allows you to easily and graphically create, modify, view, and validate WSDL files. To create a WSDL, do these steps:
| Create a Dynamic Web project to host the new Web service:
|
EAR project: RAD75TopDownBankEAR
|
| Create a WSDL file:
|
Right-click WebContent (in RAD75TopDownBankWS) and select New Æ Other Æ Web services Æ WSDL, and click Next.
|
Change the File name to BankWS.wsdl and click Next.
|
In the Options page, leave the default and click Finish (Figure | 8-32).
|
Figure 18-32 New WSDL File wizard
| The WSDL editor opens with the new WSDL file. Select the Design tab.
|
In the WSDL editor, select Advanced from the View drop-down menu at the top right corner.
|
Figure 18-33 WSDL editor