Download Programming WebLogic Web Services

Transcript
As sembling WebLogic Web Se rv ices Using Ant Tas ks
Be sure you also use the typeMappingFile attribute to specify the existing data type
mapping file, generated from the first execution of the autotype Ant task in Step 1. The
autotype Ant task merges the existing XML Schema with any generated one, thus
preserving the original XML Schema.
For details, see “Running the autotype Ant Task” on page 6-10.
4. Run the source2wsdd Ant task to generate the web-services.xml deployment descriptor.
If you re-ran the autotype Ant task to create a merged data type mapping file, be sure you
specify this final file with the typesInfo attribute.
For details, see “Running the source2wsdd Ant Task” on page 6-8.
5. Optionally create a client JAR file by running the clientgen Ant task.
For details, see “Running the clientgen Ant Task” on page 6-13.
6. Package all components into a deployable EAR file by using the wspackage Ant task.
If the original XML Schema file from which you originally started uses one or more
<include> elements to include additional XML Schema files, be sure you explicitly copy
these files to the root directory of the Web Service Web application WAR file, located by
default in the root directory of the EAR file and called web-services.war.
For details and examples of a variety of ways to use the wspackage Ant task, see
“Running the wspackage Ant task” on page 6-14.
Running the source2wsdd Ant Task
Use the source2wsdd Ant task to generate a web-services.xml deployment descriptor file
from the stateless session EJB or Java source file that implements a Web Service.
To run the source2wsdd Ant task:
1. Set your environment.
On Windows NT, execute the setEnv.cmd command, located in your domain directory.
The default location of WebLogic Server domains is
BEA_HOME\user_projects\domains\domainName, where BEA_HOME is the top-level
installation directory of the BEA products and domainName is the name of your domain.
On UNIX, execute the setEnv.sh command, located in your domain directory. The
default location of WebLogic Server domains is
BEA_HOME/user_projects/domains/domainName, where BEA_HOME is the top-level
installation directory of the BEA products and domainName is the name of your domain.
6-8
Programming WebLogic Web Services
Related documents