Design an SOA Composite for Oracle B2B

You can easily create an SOA composite using a B2B service, a Mediator component, and a BPEL process service component.

You must install a database and configure it with the Oracle SOA Suite schema before creating an application server connection and deploying an SOA composite application. See Oracle Fusion Middleware Installation Guide for Oracle SOA Suite for more information.

Create an Application and Project: Use the Create SOA Application wizard to create an application and a project.

Add a B2B Service: Add a B2B service to receive the inbound message.

Add a Mediator Component: Use the Create Mediator dialog to create a Mediator service component for routing data through the SOA composite application.

Connect the Components: Connect the B2B service, the Mediator component, and the BPEL process.

Pass the Payload: Use the Routing Rules panel, Request Transformation Map dialog, and XSLT Mapper to create a transformation mapper file that maps the message (payload) contents from the source web service WSDL file to the target BPEL process WSDL file.

Deploy the Application: Deploy the application to the application server in which you created the connection.

 

Create an Application and a Project

tell me more icon Creating an Application and a Project

The JDeveloper application is the highest level in the organizational structure. It stores information about the objects you are working with, while you are creating your application. It keeps track of your projects and the environment settings while you are developing.  [ tell me more...]





  1. Open the Create Application wizard [ file > new > SOA application] .
  2. In the Application Name field, enter myB2Bapplication.
  3. Select SOA Application in the Applica tion Template list, and click Next .
  4. In the Project Name field, enter myB2Bcomposite, and click Next .
  5. In the Composi te Template list, select Composite With BPEL, and click Finish .
  6. In the Create BPEL Process dialog, enter emptyBPEL in the Name field.
  7. From the Template list, select One Way BPEL Process.
  8. Deselect the E xpose as a SOAP Service checkbox.
  9. Click OK. The BPEL Process Designer appears.
  10. Close the BPEL Process Designer.

    tell me more icon In the IDE

    After you create your application and project, the Application Navigator and SOA Composite Editor should look like this:  [ tell me more...]



 

Add a B2B Service

tell me more icon Adding a B2B Service or Reference

Binding components such as B2B services make SOA composite applications accessible to the outside world. The following types of binding components are available in an SOA composite application.  [ tell me more...]





  1. In the Component Palette, select SOA from the dropdown list.
  2. Select the B2B service icon B2B service adapter, and drag it into the Exposed Services column of the SOA Composite Editor.
  3. On the B2B Configuration Wizard Welcome page, click Next .
  4. Enter B2B_Receive in the Service Name field, and click Next .
  5. Select Default for the B2B integration type, and click Next .
  6. Select myConnection in the AppServer Connection list, and click Next .
  7. Select Receive for the inbound message (service), and click Next .
  8. Use the Import Schema from B2B option displayed on the Basic tab, and click Next .
  9. Select the document definition for the service, 850def, and click Next .

    tell me more icon Selecting Document Definition Handling Options

    To find the 850def document definition, expand EDI_X12, then 4010, and then 850. Or you can click B2B Configuration to create a document definition in Oracle B2B.  [ tell me more...]



  10. Click Finish .

    tell me more icon In the IDE

    After creating the B2B service, the SOA Composite Editor should look like this:  [ tell me more...]



 

Add a Mediator Service Component

tell me more icon Adding a Mediator Service Component

Service components implement the business logic or processing rules of the SOA composite application. A Mediator service component routes data through an SOA composite application. Using the Mediator service component, you create routing services and rules for them. A routing service is the key component for moving a message from entry point to exit point in an application. The rules determine how a message instance processed by the routing service gets to its next destination.  [ tell me more...]





  1. In the Component Palette, select the Mediator component and drag it into the Components section of the SOA Composite Editor.
  2. In the Create Mediator dialog, enter B2B2BPEL in the Name field.
  3. Select Define Interface Later from the Template dropdown list, and click OK.
  4. Click save all icon  Save All.

    tell me more icon In the IDE

    After creating the Mediator service component, the SOA Composite Editor should look like this:  [ tell me more...]



 

Connect the Components

tell me more icon Connecting the Components

Wires enable you to connect binding component services, service components, and binding component references in an SOA composite application for message communication.  [ tell me more...]





  1. Select the web service arrow arrow on the right side of the B2B service.
  2. Drag the web service arrow arrow to the mediator triangle arrow on the left side of the B2B2BPEL Mediator service.
  3. Select the mediator triangle triangle on the right side of the B2B2BPEL Mediator service.
  4. Drag the mediator triangle triangle to the bpel process arrow arrow on the left side of the emptyBPEL BPEL process.

    tell me more icon In the IDE

    After you connect the B2B service, Mediator service component, and BPEL process component, the SOA Composite Editor looks like this:  [ tell me more...]



 

Pass the Payload

tell me more icon Passing the Payload

You must pass the incoming payload from the binding component service to the Mediator service component to the BPEL process service component. This requires you to create a transformation to map the payload contents from the source schema WSDL file of the web service to the target schema WSDL file of the BPEL process. The Mediator service component routes the payload between the two.   [ tell me more...]





  1. In the SOA Composite Editor, double-click the B2B2BPEL Mediator component.
  2. Click transformation icon next to the Transform Using field.
  3. In the Request Transformation Map dialog, select Create New Mapper File .
  4. Accept the default name in the Create New Mapper File field, and click OK.
  5. In the XSLT Mapper, drag the ns1:Transaction-850 node in the source panel to the client:input node in the target panel.
  6. Click save all icon Save All.
  7. Close the XSLT Mapper.
  8. Close the B2B2BPEL Mediator component.

    tell me more icon In the IDE

    Once created, the Transaction-850_To_process.xsl file in the xsl folder of the Application Navigator should look like this:  [ tell me more...]



 

Deploy the Application

tell me more icon Deploying the Application

In order to test and monitor your SOA composite application, you deploy the application deployment profile to the Oracle WebLogic Server to which you created a connection. Select Deplo y then choose m yB2Bcomposite .  [ tell me more...]





  1. Right-click myB2Bcomposite, and select Deplo y then choose m yB2Bcomposite .
  2. On the Deployment Action step of the Deploy myB2Bcomposite wizard, select Deploy to Application Server, and click Next .
  3. On the Deploy Configuration step, accept the defaults, and click Next .
  4. On the Select Server step, select myConnection, and click Next .
  5. On the SOA Servers step, choose the target SOA server to which to deploy the archive, and click Finish .
  6. In the Log window that appears at the bottom, click the SOA tab to display any SOA compilation errors. If deployment was successful, the words BUILD SUCCESSFUL display at the bottom.
  7. Click the Deployment tab to display any generic deployment errors.
  8. Click the Messages tab to display any generic deployment errors. If deployment was successful, the words Successfully deployed archive are displayed in the log.
  9. Click save all icon Save All.

    tell me more icon In the IDE

    If deployment was successful, the message that displays in the SOA-Log window at the bottom of the designer should look like this:  [ tell me more...]



 

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,