In the reply.xsl page, drag and drop socketWrite from the Advanced Double-click the socketWrite advanced function. The Edit Function - Enter the function parameters in the valueToWrite, nxsdStyle, and

5-28 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–27 The Edit Function - socketWrite Dialog

e. Click OK. The reply.xsl XSL mapper tool page is displayed.

f. Link the sockWrite function in the middle pane to the target input node on

the right pane. The reply.xsl XSL mapper tool with the XSL mapping is displayed, as shown in Figure 5–28 . Figure 5–28 The JDeveloper - reply.xsl Page Note: The socketWrite function writes to the socket output stream by using the StyleReader exposed by the NXSD framework. Oracle JCA Adapter for Sockets 5-29

22. Click File, Save All. The request.xsl and reply.xsl files for the inbound Oracle

Socket Adapter are created.

5.4.3.2 Designing XSL for Outbound Synchronous RequestReply

This section describes the procedure for designing XSL for an outbound synchronous requestreply scenario by using the XSL mapper tool: Design an SOA Composite To design an SOA composite, perform the steps described in Section 5.5.1.2, Designing the SOA Composite. . Create an Outbound Oracle Socket Adapter Reference To create an outbound Oracle Socket Adapter reference, perform the following steps:

1. Drag and drop Socket Adapter from the Components 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 the service name, HelloWorld in the Service Name field and then click

Next . The Adapter Interface page is displayed.

4. Select Define from operation and schema specified later, as shown in the

Figure 5–16 and click Next. The Operation page is displayed.

5. Select Outbound Synchronous RequestReply as the Operation Type and then

click Next. The Socket Connection page is displayed. 6. Enter eissocketOutboundSocketAdapter in the Socket Connection JNDI Name field and click Next. The Messages page is displayed. 7. 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.

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

shown in Figure 5–18 .

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

HelloWorld.xsd file. Note: To perform this use case, you require the following files from the artifacts.zip file contained in the Adapters-101SocketAdapterHelloWorld sample: ■ artifactsschemasHellowWorld.xsd You can access the Adapters-101SocketAdapterHelloWorld sample on the Oracle SOA Sample Code site. Copy the HelloWorld.xsd file to HelloWorldComposite\xsd under the HelloWorldComposite project: Note: The steps provided in Section 5.5.1.2, Designing the SOA Composite are applicable to a composite with Oracle BPEL PM. Alternatively, you can create a composite with Mediator.