JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS FTP Binding Component Tutorial     Java CAPS Documentation
search filter icon
search icon

Document Information

Understanding the FTP Binding Component

Tutorial Overview

Tutorial Requirement

Software Needed for the Tutorial

Tutorial Plan

FTP Binding Component Project in a Nutshell

Starting the GlassFish Application Server

To Start the GlassFish Application Server

Working With JBI Runtime Environment

To Start JBI Components

FTP Binding Component Runtime Configuration Properties

Creating a BPEL Module Project : SendInventory

To Create a BPEL Module Project

Creating a WSDL Document : Using FTP

To Create a WSDL Document : ftpTransfer

To Modify ftp:message Properties

Poll Request Wizard Properties

FTP MessageActivePassive Element (<ftp:messageActivePassive>)

FTP Binding Component Extensibility Elements

Runtime Configuration

FTP Operation Element (<ftp:operation>)

FTP Binding Element (<ftp:binding>)

FTP Transfer Element (<ftp:transfer>)

Pattern Matching

FTP Address Element (<ftp:address>)

FTP Message Element (<ftp:message>)

Creating a WSDL Document : Using FILE

To Create a WSDL Document : fileTrigger

Creating a BPEL Process

To Create a BPEL Process

To Add a Partner Link

To Add Web Services and Basic Activities

To Edit Web Service : Receive1

To Edit the Web Service : Invoke1

To Edit the Basic Activities : Assign1

Validating BPEL

To Invoke Explicit Validation

Design View : Notifications

The Design View

Creating a Composite Application

To Create a Composite Application

Deploying the Composite Application

To Deploy the Composite Application

Working With Various Binding Types

Exploring the XML Schema

About the Schema View

Creating the XML Schema

To Create XML Schema

To Add a Complex and a Global Complex Type to the XML Schema

To Add Element to the XML Schema

To Add Elements to the XML Schema

Creating a BPEL Process

In this section, you add a BPEL process file named sendInventoryBP.bpel. This example also illustrates adding a partner link and activities to the BPEL process file.

To Create a BPEL Process

  1. Expand the SendInventory BPEL Module project node in the Projects window.
  2. Right-click the BPEL Module project name or Process Files node. Point to New and select BPEL Process.
    image:BPEL Process

    The New BPEL Process wizard appears.

  3. Type sendInventory in the File Name field.
  4. Click Finish.

    Note -

    • In the Projects window, the IDE adds a sendInventory.bpel node under the Process Files node.

    • The sendInventory.bpel file appears in the BPEL Designer.

    • If the Properties window is not visible, click Window and then click Properties.

    • The Navigator window appears showing the BPEL Logical View of the BPEL Process document.


To Add a Partner Link

  1. Select the Partner Link from the Projects tab.

    This is the Input WSDL (for example, fileTrigger.wsdl).

  2. Drag and drop the File WSDL document (fileTrigger.wsdl) to the left panel of the design area.
    image:File Partner Link
  3. Select the ftpTransfer.wsdl Partner Link from the Projects tab.

    This is the Output WSDL.

  4. Drag and drop the ftpTransfer.wsdl FTP WSDL Document to the right panel of the design area.
    image:FTP Partner Link

To Add Web Services and Basic Activities

Drag and drop the following web services:

Drag and drop the basic activities : Assign.

  1. Select the Web Service : Receive in the Web Service section of the Palette.
  2. Drag the selection to the sendInventory Process box in the design area between the Process Start and the Process End activities.

    The IDE provides the visual clues to show an appropriate location to drop the selection.


    image:Visual Clues

    This action places a Web Service : Receive1 in the Design view.

  3. Select the Basic Activities : Assign in the Basic Activities section of the Palette.

    This action places a Assign activity called Assign1 in the Design view.

  4. Select the Web Service : Invoke in the Web Service section of the Palette.

    This action places a Assign activity called Invoke1 in the Design view.

  5. Click Save All.
    image:Select All Activities

    Note - In the diagram, a red cross next to an element means that the element has not passed validation and the output contains errors. Edit each Sequence to pass validation.


    The icon symbolizes the Web Services that can be edited.


    image:Edit Enabled

To Edit Web Service : Receive1

  1. Click Web Service — Receive1 and click Edit.

    This opens the Receive1 [Receive] - Property Editor.

  2. Select the properties from the Main tab. In this example, select PartnerLink1 from the drop-down list.

    The IDE populates poll against the Operation field.


    image:Receive Property Editor
  3. Do the following to create a New Input Variable:
    • Click the Create button next to the Input Variable field.

      The New Input Variable dialog box appears.

    • The default values assigned in the Name, Type, and Scope fields are populated for the variable.

      The value in the Name field can be changed.

    • Click OK.


    image:Poll In New Input Variable

    Input Variable — PollIn


    image:Complete Receive
  4. Click OK to close the Receive1 [Receive] - Property Editor.
  5. Click Save All.
    image:Receive Edit Map

To Edit the Web Service : Invoke1

  1. Click Web Service — Invoke1 and click Edit.

    The Invoke1 [Invoke] - Property Editor appears.

  2. Select the properties from the Main tab. In the current example, select PartnerLink2 from the drop-down list.

    The IDE populates OutboundOneWayMessagingOperation against the Operation field .


    image:Invoke Property Editor
  3. Do the following to create a New Input Variable:
    • Click the Create button next to the Input Variable field.

      The New Input Variable dialog box appears.

    • The default values assigned to the Name, Type and Scope fields are populated for the variable.

      The value in the Name field can be changed.

    • Click OK.


    image:Invoke New Input Variable

    The Invoke1 [Invoke] — Property Editor is displayed as shown.


    image:Final Invoke Input Variable
  4. Click OK to close the Receive1 [Receive] - Property Editor.
  5. Click Save All.
    image:Invoke Edit Map

To Edit the Basic Activities : Assign1

  1. Double-click the Basic Activity : Assign1.

    This displays the BPEL Mapper window.


    image:Assign Activity
  2. Expand the node in the Source tree pane (the left pane) of the BPEL Mapper under Output —> Variables (for example, PollIn).

    A part1 node appears under the PollIn node.

  3. Expand the node in the Destination tree pane (the right pane) of the BPEL Mapper under Input —> Variables (for example, OutboundOneWayMessagingOperationIn).

    A part1 node appears under the OutboundOneWayMessagingOperationIn node.

  4. Select the node in the Source tree pane.

    For example, PollIn — part1.

  5. Drag the selection and map it to the node in the Destination tree pane.

    For example, OutboundOneWayMessagingOperationIn — part1.

  6. Map the following Input and Output Variables

    part1 — part1

  7. Click Save All.
    image:Final Mapper
  8. Click the Design tab.

    The final output is as shown in the illustration.


    image:Final Output Mapper
  9. Right-click the sendInventory project and select Clean and Build.

    The following message appears after the build.

    BUILD SUCCESSFUL (total time: 1 seconds).

    image:Build Successful
  10. Click Save All.