Contributing Web Services
To add a web service to your bundle just supply a wsdd (
Web Service Deployment Descriptor) to the
META-INF directory.
Here is an example of a wsdd...
<bundle-location>/META-INF/test.wsdd
<?xml version="1.0" encoding="UTF-8"?>
<ws:deployment name="LoadingTestDeployment" xmlns:ws="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<ws:service name="LoadingTest" provider="java:RPC">
<ws:parameter name="scope" value="request"/>
<ws:parameter name="className" value="org.ziptie.axis.test.TestLoading"/> <!-- This is the class name of the service. -->
<ws:parameter name="allowedMethods" value="example"/> <!-- This is a comma seperated list of the exposed methods on the service -->
</ws:service>
</ws:deployment>
And here is the example class...
org.ziptie.axis.test.TestLoading.java
...
public class TestLoading
{
public String example() throws RemoteException
{
return "The example worked."; //$NON-NLS-1$
}
}