From the Component Palette list, select General; then, select XSLT Drag copy-of from the Component Palette to HelloWorldProcessResponse in Click OK. The invoke.xsl XSL mapper tool page is displayed with the

Oracle JCA Adapter for Sockets 5-35 Figure 5–36 The JDeveloper - invoke.xsl Page with Copy-of Type Dialog

d. Click OK. The invoke.xsl XSL mapper tool page is displayed with the

copy-of XSLT construct added to the target pane, as shown in Figure 5–37 . Figure 5–37 The JDeveloper - invoke.xsl Page 5-36 Oracle Fusion Middleware Users Guide for Technology Adapters

e. Drag the copy-of XSLT construct to the socketReadWithXlation function. A

link is created, as shown in Figure 5–38 . Figure 5–38 The JDeveloper - invoke.xsl Page

24. Click File, Save All. The Outbound Synchronous RequestReply handshake is

defined.

5.4.4 Specifying a TCP Port in a Configuration Plan For an Oracle Socket Adapter

To specify a TCP port in a configuration plan for an Oracle Socket Adapter, perform the following steps where service-name is Service name: 1. Add a port property to your service-name_tcp.jca file: property name=Port value=Port 2. Add the following code to your configuration plan XML file: service_name=XXXXXX property property name=Port replace2222replace property binding type’jca service 3. Add the port property to your .xml file under the service element and specify a default value, in this example, 1111 service name=XXXXX ui:wsdlLocation interface.wsdl.interface=... binding.jca config=XXXX_tcp.jca property name=Port type=xs:string many=false override=may1111property service Oracle JCA Adapter for Sockets 5-37 4. Deploy your composite with the configuration plan. When deployed, the Oracle Socket Adapter will listen on port 2222, as provided in the configuration plan. If you deploy the composite without a configuration plan or if the configuration plan does not override the Port property, then the Oracle Socket Adapter will listen on the socket that the composite.xml files default Port property specifies in this example, port 1111.

5.5 Oracle Socket Adapter Use Cases

This section includes the following Oracle Socket Adapter use cases: ■ Section 5.5.1, Oracle Socket Adapter Hello World ■ Section 5.5.2, Flight Information Display System

5.5.1 Oracle Socket Adapter Hello World

This is a simple HelloWorld use case, which demonstrates the synchronous inbound requestresponse and synchronous outbound requestresponse modes of communication using Oracle Socket Adapter. The HelloWorld business process takes an input string from the Oracle Socket Adapter inbound service and publishes the message to the BPEL process. The BPEL process invokes the Oracle Socket Adapter outbound service a simple HelloWorld Server, which adds a prefix ?Hello? to the input string and returns it and returns the received string using a synchronous reply. This use case includes the following sections: ■ Section 5.5.1.1, Prerequisites ■ Section 5.5.1.2, Designing the SOA Composite ■ Section 5.5.1.3, Creating the Inbound Oracle Socket Adapter Service ■ Section 5.5.1.4, Creating the Outbound Oracle Socket Adapter Service ■ Section 5.5.1.5, Wiring Services and Activities ■ Section 5.5.1.6, Deploying with JDeveloper ■ Section 5.5.1.7, Monitoring Using the Oracle Enterprise Manager Fusion Middleware Control Console Fusion Middleware Control Console

5.5.1.1 Prerequisites

To perform this use case, you require the following files from the artifacts.zip file contained in the Adapters-101SocketAdapterHelloWorld sample: ■ artifactsschemasHelloWorld.xsd ■ artifactsxslrequest.xsl ■ artifactsxslreply.xsl ■ artifactsxslinvoke.xsl You can access the Adapters-101SocketAdapterHelloWorld sample on the Oracle SOA Sample Code site.