web.xml
Renames to web-before.xml
Adds elements: listener, servlet, and servlet-mapping
jaxrpc-ri.xml
renames to jaxrpc-before.xml
writes jaxrpc-runtime.xml
A list of endpoints containing: name, interface, implementation, tie, model, WSDL, service,
port, and URL pattern attributes
Generates classes and WSDL using wscompile -gen:server
Packages the output.war file
Example 1. Creating the output WAR file
wsdeploy -o Hello.war Input.war
Where the deployable WAR file Hello.war is generated.
The contents of the Input.war for a simple Hello
web service would be:
META-INF/MANIFEST.MF
WEB-INF/classes/hello/HelloIF.class
WEB-INF/classes/hello/HelloImpl.class
WEB-INF/jaxrpc-ri.xml
WEB-INF/web.xml
Where:
HelloIF is the service's RMI interface
HelloImpl is the class that implements the interface
web.xml file is the deployment descriptor of a
web component
The contents of the jaxrpc-ri.xml file would be:
<?xml version="1.0" encoding="UTF-8"?>
<webServices
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="http://com.test/wsdl"
typeNamespaceBase="http://com.test/types"
urlPatternBase="/ws">
<endpoint
name="MyHello"
displayName="HelloWorld Service"
description="A simple web service"
interface="hello.HelloIF"
implementation="hello.HelloImpl"/>
<endpointMapping
endpointName="MyHello"
urlPattern="/hello"/>
</webServices>