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:
![]() |
This opens the Add Complex Type dialog box.
![]() |
3 Type the name in the Name field.
For example, author
a Select Type Definition: Inline Definition
b Select Compositor: Sequence
A preview of the XML code is also displayed at the bottom of the box.
4 Click OK.
![]() |
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.
![]() |
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.
![]() |
1 Click Complex Types — Add Complex Type...
2 Type Name: book
3 Click OK.
4 Perform the following:
a Click either Complex Types: book or sequence —> Add —> Element —> genre
Use Existing Types —> Build-in Types —> string
b Click either Complex Types: book or sequence —> Add —> Element —> title
Use Existing Types —> Build-in Types —> string
c Click either Complex Types: book or sequence —> Add —> Element —> author
Use Existing Types —> Complex Types —> author
In the current example, the author is a Global Complex Type because it comprises of two Element Types (firstname and lastname).
![]() |
d Click either Complex Types: book or sequence —> Add —> Element —> price
Use Existing Types — Build-in Types — double
e Click either Complex Types: book or sequence —> Add —> Element —> quantity
Use Existing Types — Build-in Types — unsignedInt
![]() |
![]() |
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
![]() |
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.
6 Click Save All.
![]() |
Next
Appendix A - Working With Various Binding Types
See Also