background image

Building and Running the Header Example

<< Header Example | Running Header Example >>
<< Header Example | Running Header Example >>

Building and Running the Header Example

Building and Running the Header Example
To build the program using NetBeans IDE, follow these steps:
1. In NetBeans IDE, choose Open Project from the File menu.
2. In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/saaj/.
3. Select the headers folder.
4. Select the Open as Main Project check box.
5. Click Open Project Folder.
A Reference Problems dialog appears. Click Close.
6. Right-click the headers project and choose Resolve Reference Problems.
7. In the Resolve Reference Problems dialog, select the first of the missing JAR files and click
Resolve.
The missing files are activation.jar, javaee.jar, and appserv-ws.jar.
8. Navigate to the as-install/lib/ directory.
9. Select the missing JAR file (activation.jar, for example) and click Open.
In the Resolve Reference Problems dialog, all the files have green check marks to the left of
their names.
10. Click Close.
11. Right-click the project and choose Build Project.
To run the program using NetBeans IDE, follow these steps:
1. Right-click the headers project and choose Properties.
2. Select Run from the Categories tree.
3. In the Arguments field, type the following:
1.1
This argument specifies the version of SOAP to be used in generating the message.
4. Click OK.
5. Right-click the project and choose Run Project.
6. Right-click the project and choose Properties.
7. Select Run from the Categories tree.
8. In the Arguments field, type the following:
1.2
9. Click OK.
10. Right-click the project and choose Run Project.
Code Examples
Chapter 19 · SOAP with Attachments API for Java
615