r2 - 07 Jun 2007 - 22:22:38 - BrettWooldridgeYou are here: TWiki >  Developer Web  > HowtoContributeWsdd

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$
    }
}
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
Developer.HowtoContributeWsdd moved from Main.HowtoContributeWsdd on 07 Jun 2007 - 22:22 by BrettWooldridge - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback