Configure the settings for the service. For help with a service editor, click Help or Click OK.

2-12 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 2–7 Web Service in Composite

6. Select Save All from the File main menu.

2.3.2 How to Add a WSDL for a Web Service

As described in Section 2.3.1, How to Add a Service Binding Component, a web service is a type of binding component that you can add to a SOA composite application. You must select the WSDL file for the web service. To add a WSDL for a web service: 1. In the Component Palette, select SOA. 2. From the Service Adapters list, drag a Web Service to the left swimlane. This invokes the Create Web Service dialog shown in Figure 2–6 .

3. Enter the details shown in

Table 2–7 :

4. Select the WSDL file for the service. There are three methods for selection:

a. To the right of the WSDL URL field, click the first icon and select an existing

WSDL file from the local file system for this example, OrderProcessor.wsdl is selected. Note that File System in the list at the top of the dialog is automatically selected. Figure 2–8 provides details. Table 2–7 Create Web Service Dialog Fields and Values Field Value Name Enter a name for the service. Type Select the type message direction for the web service. Since you dragged the web service to the left swimlane, the Service type is the correct selection, and displays by default: ■ Service default Creates a web service to provide an entry point to the SOA composite application ■ Reference Creates a web service to provide access to an external service in the outside world Since this example describes how to create an entry point to the SOA composite application, Service is selected. Developing SOA Composite Applications with Oracle SOA Suite 2-13 Figure 2–8 WSDL File Selection

b. To the right of the WSDL URL field, click the first icon and select Resource

Palette from the list at the top of the dialog, as shown in Figure 2–9 . This action enables you to use existing WSDL files from other applications. Figure 2–9 Use of Existing WSDL files from Other Applications

c. To the right of the WSDL URL field, click the second icon to automatically

generate a WSDL file from a schema. Figure 2–10 shows the Create WSDL dialog. Default values for the WSDL file name, directory location, namespace, port type, operation name, and interface type are displayed. If the specified directory is not the subdirectory of the current project, a warning message is displayed. If the specified directory does not exist, it is automatically created. You can modify the default values.