Overview
In this tutorial, you will learn about the use of the XSLT Designer included with the NetBeans Enterprise Pack 5.5.1 beta release. The XSLT Designer is used to develop, deploy, and test XSL Transformation Services.
The XSL Transformation service is used as a Web service. It receives messages from external clients, converts the messages according to the XSL style sheet, and then sends the message back to the initiator or forwards the message to another Web service.
In this tutorial, you will create a simple XSL transformation service that receives messages, converts messages, and then sends the message back to its Web service.
Prerequisite conditions
This tutorial assumes that you have a basic understanding of the NetBeans IDE and that you have experience using NetBeans IDE programming.
System Requirements
This tutorial assumes that your system complies with the requirements specified in the "System Requirements" section of the NetBeans Enterprise Pack 5.5.1 Beta Release notes.
The software required for the tutorial
Note: The NetBeans IDE 5.5.1 Release Candidate is now published. The NetBeans Enterprise Pack 5.5.1 Beta is used in conjunction with this RC version of the IDE. We are not going to release any further updates to the NetBeans Enterprise Pack 5.5.1 Beta. All of our development efforts are focused on NetBeans 6.0 and the SOA Pack. Before you begin, you must install the following software on your computer:
NetBeans IDE 5.5.1 RC1
NetBeans Enterprise Pack 5.5.1 Beta
Configuring the Tutorial Environment
The JBI Runtime and Sun Java System application Server 9 must be properly configured and run before the application can be deployed.
To confirm that the JBI server is started, perform the following steps:
1. Open the Runtime window.
2. Expand the Servers node.
3. Right-click the Sun Java System application Server 9 node and select Start from the pop-up menu. If the Start option is not available, and a green triangle is next to the Sun Java System Application Server node, your server is already running.
4. Expand the Sun Java System application Server 9 > JBI > Service engines and ensure that the XSLT service engine is running. If the service engine is not running, right-click the Com.sun.xsltse-1.0-2 node and choose Start from the pop-up menu. If the start option is not available, it means that the service engine is already running.
To create an XSLT module project
Create the XSL transformation service in the XSLT module project.
To create a new XSLT module project, do the following:
1. From the IDE's main menu, select File > New Project.
2. Under Categories, choose Service Oriented Architecture.
3. Under Projects, select XSLT Module.
4. Click Next.
5. In the Project Name field, type Helloxsltransformation.
6. Modify the project location or accept the default settings.
7. Click Finish.
8. The Projects window now contains helloxsltransformation project nodes.
Next, we will create two XML schema (. xsd) files, a Web service description (. wsdl) file, and an XSL stylesheet (. xsl) file. To run the XSL transformation Service, you need at least one XML schema file, one WSDL file, and one XSL style sheet file. In this tutorial, we will create two XML schema files.
Creating XML schemas
We will create two XML schemas: helloxsltincoming.xsd and helloxsltoutgoing.xsd. We will use the former as the basis for incoming messages, which serve as the basis for outgoing messages.
To create an XML schema for incoming messages, do the following:
1. In the Projects window, right-click the Helloxsltransformation > Transformation Files node and select New > File/folder.
2. Under the Categories of the New File dialog box, select XML.
3. Under File Types, select the XML Schema.