user manual

94 BES Developers Guide
Packaging Web Service Application Archives
Creating a server-config.wsdd file
To create the server-config.wsdd:
Use JBuilder to generate the deployment descriptor as part of your WAR.
or
1 Use a text editor to write a deploy.wsdd file. Refer to the deploy.wsdd file in
<install_dir>/examples/webservices/java/server.
2 Run the Tools Overview on page 96 with the deploy.wsdd file by typing:
prompt>java org.apache.axis.utils.Admin server deploy.wsdd
The server-config.wsdd file is packaged as part of the WAR.
Viewing and Editing WSDD Properties
You can view and edit the properties of any web service deployment
descriptor (WSDD) (server-config.wsdd file) that is packaged in a WAR file
using either the Borland Management Console or the DDEditor. For more
information, go to the Management Console User's Guide, Viewing J2EE
component configurations, Viewing Web Services WSDD properties section,
or the Using the Deployment Descriptor Editor, Web Services section.
Packaging Web Service Application Archives
To Create a WAR that can be deployed to the web services archive:
1 Make sure your web service classes are in WEB-INF/classes or WEB-INF/lib.
2 Copy the Axis toolkit libraries to WEB-INF/lib. The Axis libraries can be found
in: <install_dir>/lib/axis
3 Copy the web.xml necessary for the Axis tool kit to WEB-INF directory. The
web.xml can be found in: <install_dir>/etc/axis
4 Create a deploy.wsdd that has deployment information about your web
services.
5 Run the Tools Overview on page 96 on this deploy.wsdd to generate the
server-config.wsdd as follows:
java org.apache.axis.utils.Admin server deploy.wsdd
6 Copy this server-config.wsdd to WEB-INF
7 JAR your web application into a WAR file.