multiple classes in axis deploy.wsdd

J

Jeremy

I've created several classes to be used as an axis web service, and I've
created the deploy.wsdd file which specifies the service elements (one for
each class), class nanes, methods and parameters. In the wsdd file I've
specified one service element for each class I've created. Is it possible
to specify one service element with multiple "className" parameter methods?
Basically I want all my web service classes to be part of one service.


example:

mywebservice1.java:

public class mywebservice1
{
public method1(int iParameter1)
{
...
}
}

mywebservice2.java:

public class mywebservice1
{
public method2(int iParameter2)
{
...
}
}

deploy.wsdd:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="test/mywebservice1" provider="java:RPC">
<parameter name="className" value="mywebservice1"/>
<parameter name="allowedMethods" value="*"/>
<operation name="method1">
<documentation>Test method</documentation>
<parameter name="iParameter1">
<documentation>Test parameter</documentation>
</parameter>
</operation>
</service>

<!-- How do I combine these two service elements? -->

<service name="test/mywebservice2" provider="java:RPC">
<parameter name="className" value="mywebservice2"/>
<parameter name="allowedMethods" value="*"/>
<operation name="method2">
<documentation>Test method</documentation>
<parameter name="iParameter2">
<documentation>Test parameter</documentation>
</parameter>
</operation>
</service>
</deployment>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top