|
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>
|