Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components
Close Print View
Using JBI Components: Creating the XML Schema
 

Configuring JBI Components

Administering JBI Components for Java CAPS

Using the Java EE Service Engine in a Project

Using the Java EE Service Engine to Create a Composite Application

Using the BPEL Designer and Service Engine

Using the HTTP Binding Component

Processing an Order in a Purchase Order System

Designing Custom Encoders

Using the XSLT Editor

XSLT Designer: Simple Transformation Tutorial

Using the File Binding Component

Using the File Binding Component in a Project

Using the JMS Binding Component

Understanding the FTP Binding Component

Using the FTP Binding Component in a Project

Tutorial Overview

Tutorial Requirement

Software Needed for the Tutorial

Tutorial Plan

FTP Binding Component Project in a Nutshell

Downloading GlassFish ESB Installer

Downloading and Installing the JAR Files and the NBM Files

To Install the JAR Files in FTP Binding Component

To Install the NBM Files in FTP Binding Component

Starting the GlassFish V2 Application Server

To Start the GlassFish V2 Application Server

Working With JBI Runtime Environment

To View the Installed or Deployed 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 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 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

Understanding the LDAP Binding Component

Using the LDAP Binding Component in a Project

Using the JMS JCA Wizard

Using the JAXB Wizard and Code-Seeder Pallete

Understanding the Database Binding Component

Using the Database Binding Component

Using the WSDL Editor

Migrating From eTL to Sun Data Integrator

Designing Intelligent Event Processor (IEP) Projects

Designing Data Integrator Projects

Using the Sun Data Mashup Engine

Creating the XML Schema

In this section the user adds a new XML schema file and XML schema components to the BPEL Module project.

The XML schema allows you to visualize and edit XML schemas. Using the XML schema, you can reference external schemas and use advanced queries to analyze the schemas.

GlassFish ESB comes bundled with a rich set of tools to work with various XML documents such as XML Schema, WSDL, BPEL, and XML instance documents. The tools provide several options to edit and visualize XML documents. In addition it also provides refactoring support, search, queries and find usage, seamless navigation between views, design pattern and schema aware code completion support.

Using the XML schema functionality, you can:

To Create XML Schema

  1. Expand the project node. Right-click either the BPEL Module node or Process Files. Choose New —> Other in the Projects Window.

    The New File wizard opens.

  2. In the New File wizard, perform the following:
    1. Select the XML node in the Choose File Type page — Categories list. Select the XML Schema node in the File Types list and click Next.
    2. Type the File Name in the File Name field.

      For example, bookInventory

    3. Click Finish.

    In the Projects window, the Process Files node now contains a subnode labeled bookInventory.xsd. The Source Editor contains a tab for the XML schema file named bookInventory.xsd. The Schema view for this file is also displayed.

  3. Click the Design button to open the Design view of the XML schema editor.

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

  1. Select the Complex Types node in the first column of the Schema view.
  2. Right-click and choose Add Complex Type...
    Add Complex type

    This opens the Add Complex Type dialog box.


    Add Complex Type Dialog
  3. Type the name in the Name field.

    For example, author

    1. Select Type Definition: Inline Definition
    2. Select Compositor: Sequence

      A preview of the XML code is also displayed at the bottom of the box.

  4. Click OK.

To Add Element to the XML Schema

  1. Select the Complex Types —> author in the Schema view. Right-click on either author or sequence and choose Add —> Element...
    Add Element

    This opens Add Element dialog box.

  2. Type the Name of the Element.

    For example, firstname

  3. Type from the list of radio button options. In the current example, choose the Use Existing Type radio button. In the listing area beneath the Type radio button, expand the Built-in Types node. Select string.
    Add Element Use Existing Type
  4. Click OK.

    The Schema view now contains a node for the firstname element, whose parent is the sequence under the author Complex Types.

  5. Click Save All.

    Similarly, create another Element — lastname. Repeat steps 1 through 5.


    Add Complex Types
See Also

Click Complex Types — Add Complex Type...

To Add Elements to the XML Schema

  1. Select Elements in the first column of the Schema view.
  2. Right-click and choose Add Element...
    Add Element

    This opens Add Element dialog box

  3. Type the Name of the Element.

    For example, bookstore

  4. Select the Use Existing Type radio button. In the listing area beneath the Type radio buttons, expand the Complex Types node. Select book.

    For example, book


    Element Complex Types

    In the current example, book is a Global Complex Type because it comprises of five Element Types (genre, titles, author (Global Complex Type), price, and quantity).

  5. Click OK.
    Element Complex Type
  6. Click Save All.