12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tools Overview<br />

Tools Overview<br />

Steps to build, deploy, and run the examples<br />

1 Build. You can build all of the examples simultaneously or build each one<br />

individually. To build them all simultaneously, navigate to the:<br />

/examples/<strong>web</strong>services/<br />

directory and execute the Ant command. For example:<br />

C:/BDP/examples/<strong>web</strong>services>Ant<br />

builds all the examples.<br />

To build an individual example, navigate to its specific directory and execute the Ant<br />

command.<br />

For example:<br />

C:/BDP/examples/<strong>web</strong>services/java>Ant<br />

builds only the Java Provider example.<br />

2 Deploy. You deploy the examples to a running instance of BES. You can use the<br />

ant deploy target, or any of the following to deploy your WAR and JAR:<br />

■<br />

■<br />

iastool command-line utility, for more information go to “iastool command-line<br />

utility” on page 293.<br />

Deployment Wizard, for more information go to the Management Console User's<br />

Guide.<br />

3 Run. To run an example, navigate to its directory and use the ant run-client<br />

command.<br />

For example, to run the Java Provider client:<br />

C:/BDP/examples/<strong>web</strong>services/java>Ant run-client<br />

Apache Axis Web Service samples<br />

The Apache Axis <strong>web</strong> service samples are already deployed in the axis-samples.war<br />

file present in the <strong>Borland</strong> Partition. Since these are already pre-deployed, you do not<br />

need to use the Apache Axis deploy commands suggested in the Apache Axis User's<br />

Guide.<br />

The Apache Axis User's Guide is also provided with the BES installation and is located<br />

in:<br />

/doc/axis/user-guide.html<br />

or refer to the Axis User Guide located in /doc/axis/user-guide.html.<br />

These samples illustrate the capabilities of Axis. They are unmodified from the original<br />

Apache Axis implementation and are not guaranteed to run.<br />

This section describes the various tools used in examples.<br />

Apache ANT tool<br />

The Apache ANT utility is a platform-independent, java-based build tool used to build<br />

the examples. The XML build script build.xml is used to drive the tool. This build.xml<br />

file describes the various targets available for a project and the commands executed in<br />

response to those targets. The <strong>Borland</strong> Enterprise Server conveniently provides all<br />

necessary JARs and scripts to run the Apache Ant tool.<br />

Chapter 9: <strong>Borland</strong> Enterprise Server Web Services 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!