Creating the Outbound Oracle Socket Adapter Service

Oracle JCA Adapter for Sockets 5-47 Figure 5–53 The Adapter Configuration Wizard Operation Type Page

7. Click Next. The Socket Connection page is displayed.

8. Enter eissocketOutboundSocketAdapter in the Socket Connection JNDI

Name field, as shown in Figure 5–54 , and click Next. The Messages page is displayed. Figure 5–54 The Adapter Configuration Wizard Socket Connection Page

9. Click Browse For Schema File that appears at the end of the URL field in the

Request Message Schema box. The Type Chooser dialog is displayed. 5-48 Oracle Fusion Middleware Users Guide for Technology Adapters

10. Click Project Schema Files, HelloWorld.xsd, and HelloWorldProcessRequest, as

shown in Figure 5–48 .

11. Click OK. The URL field in the Messages page is populated with the

HelloWorld.xsd file.

12. Click Browse For Schema File that appears at the end of the URL field in the

Reply Message Schema box. The Type Chooser dialog is displayed.

13. Click Project Schema Files, HelloWorld.xsd, and HelloWorldProcessResponse.

14. Click OK. The URL fields in the Messages page are populated with the

HelloWorld.xsd files, as shown in Figure 5–49 .

15. Click Next. The Protocol page is displayed.

16. Select Use XSLT to define the handshake.

17. Click Browse to select the XSL file that appears at the end of the Xslt field. The

SOA Resource Browser dialog is displayed.

18. Select invoke.xsl as the file name, as shown in

Figure 5–55 , and click OK. The Xslt field is populated. Figure 5–55 The SOA Resource Browser Dialog

19. Click Finish. The Composite.xml page appears, as shown in

Figure 5–56 . Oracle JCA Adapter for Sockets 5-49 Figure 5–56 The JDeveloper - composite.xml Page

5.5.1.5 Wiring Services and Activities

You have to assemble or wire the three components that you have created: Inbound adapter service, BPEL process, Outbound adapter reference. Perform the following steps to wire the components:

1. Drag the small triangle in the HelloWorldClient in the Exposed Services area to

the drop zone that appears as a green triangle in the HelloWorldFlow BPEL process in the Components area.

2. Drag the small triangle in the HelloWorldFlow BPEL process in the Components

area to the drop zone that appears as a green triangle in the HelloWorldServer in the External References area. The JDeveloper composite.xml appears, as shown in Figure 5–57 . 5-50 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–57 The JDeveloper - composite.xml

3. Click File, Save All.

Add a Receive Activity 1. Double-click HelloWorldFlow. The BPELHelloWorld.bpel page is displayed. 2. Drag and drop a Receive activity from the Component Palette to the design area, as shown in Figure 5–58 .