Creating Outbound Oracle Socket Adapter Services

Oracle JCA Adapter for Sockets 5-67 Figure 5–80 The Adapter Configuration Wizard - Socket Connection Page

9. Enter the name of the system where the Airline1 socket server program must run

in the HostName field and 9001 in the PortNumber field, and click Next. The Messages page is displayed.

10. 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.

11. Click Project Schema Files, Airline1.xsd, and Source.

12. Click OK. The URL field in the Messages page is populated with the Airline1.xsd

file.

13. 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.

14. Click Project Schema Files, Airline1.xsd, and Flight-Details.

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

Airline1.xsd files, as shown in Figure 5–81 . 5-68 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–81 The Adapter Configuration Wizard - Messages Page

16. Click Next. The Protocol page is displayed.

17. Select Use XSLT to define the handshake.

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

SOA Resource Browser dialog is displayed.

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

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

20. Click Finish. The composite.xml page appears, as shown in

Figure 5–83 . Oracle JCA Adapter for Sockets 5-69 Figure 5–83 The JDeveloper - composite.xml Page Perform the following steps to create an outbound Oracle Socket Adapter service for the Airline2 server socket:

1. Drag and drop Socket Adapter from the Component Palette to the External

References swim lane. The Welcome page of the Adapter Configuration Wizard is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter Airline2 in the Service Name field.

4. Click Next. The Adapter Interface page is displayed.

5. Select Define from operation and schema specified later, and click Next. The

Operation page is displayed.

6. Select Outbound Synchronous RequestReply as the operation type.

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

8. Enter eissocketOutboundSocketAdapter in the Socket Connection JNDI

Name field and then select Specify Host and Port. 9. Enter the name of the system where the Airline2 socket server program must run in the HostName field and 9002 in the PortNumber field, and click Next. The Messages page is displayed.

10. 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.

11. Click Project Schema Files, Airline2.xsd, and Source.

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

Airline2.xsd file.

13. 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.

14. Click Project Schema Files, Airline2.xsd, and flight-details.

5-70 Oracle Fusion Middleware Users Guide for Technology Adapters

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

Airline2.xsd files.

16. Click Next. The Protocol page is displayed.

17. Select No Handshake.

18. Click Finish. The composite.xml page appears, as shown in

Figure 5–84 . Figure 5–84 The JDeveloper - composite.xml Page Perform the following steps to create an outbound Oracle Socket Adapter service for the Airline3 server socket:

1. Drag and drop Socket Adapter from the Component Palette to the External

References swim lane. The Welcome page of the Adapter Configuration Wizard is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter Airline3 in the Service Name field.

4. Click Next. The Adapter Interface page is displayed.

5. Select Define from operation and schema specified later, and click Next. The

Operation page is displayed.

6. Select Outbound Synchronous RequestReply as the operation type.

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

8. Enter eissocketOutboundSocketAdapter in the Socket Connection JNDI

Name field and then select Specify Host and Port. 9. Enter the name of the system where the Airline3 socket server program must run in the HostName field and 9003 in the PortNumber field, and click Next. The Messages page is displayed.

10. 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. Oracle JCA Adapter for Sockets 5-71

11. Click Project Schema Files, Airline3.xsd, and src.

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

Airline3.xsd file.

13. 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.

14. Click Project Schema Files, Airline3.xsd, and airline.

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

Airline3.xsd files.

16. Click Next. The Protocol page is displayed.

17. Select Use Custom Java Code to define the handshake.

18. Enter com.oracle.socket.fids.custom.Airline3Custom in the Java Class field.

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

Figure 5–85 . Figure 5–85 The JDeveloper - composite.xml Page

5.5.2.5 Wiring Services and Activities

You have to assemble or wire the components that you have created: Inbound adapter service, BPEL process, Outbound adapter references. Perform the following steps to wire the components: 1. Drag the small triangle in the FIDS client in the Exposed Services area to the drop zone that appears as a green triangle in the BPEL_FIDS process in the Components area. 2. Drag the small triangle in the BPEL_FIDS process in the Components area to the drop zone that appears as a green triangle in the Airline1, Airline2, and Airline3 servers in the External References area. The JDeveloper composite.xml file appears, as shown in Figure 5–86 . 5-72 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–86 The JDeveloper - composite.xml

3. Click File, Save All.

Add a Receive Activity 1. Double-click BPEL_FIDS. The BPELFIDS.bpel page is displayed. 2. Drag and drop a Receive activity from the Component Palette to the design area. 3. Double-click the Receive activity. The Receive dialog is displayed. 4. Retain the default name Receive_1 in the Name field. 5. Click Browse Partner Links at the end of the Partner Link field. The Partner Link Chooser dialog is displayed.

6. Select FIDS, as shown in

Figure 5–87 , and click OK.