Hi Axis 2 Community!
I wanted to deploy in Axis2 a small webservice whose implementation
class is myEchoExample (similar as Echo.java provided under test
directory)
The class code looks as simple as
package examples;
import org.apache.axis.om.OMElement;
public class myEchoExample {
public myEchoExample() {
}
public void echoVoid() {
System.out.println("echo Service Called");
}
public OMElement echoOMElement(OMElement omEle) {
omEle.setLocalName(omEle.getLocalName() + "Response");
return omEle;
}
public String echoString(String in) {
return in;
}
public int echoInt(int in) {
return in;
}
}
I compiled this and also wrote a meta-inf/service.xml as follows
<service provider="org.apache.axis.providers.RawXMLProvider"
style="rpc" contextPath="services">
<java:implementation class="examples.myEchoExample"
xmlns:java="http://ws.apache.org/axis2/deployment/java" />
<operation name="echoVoid" />
<operation name="echoOMElement" />
<operation name="echoString" />
<operation name="echoInt" />
</service>
I then packaged the class file and service.xml (retaining their
directory structure) into a myEchoExample.jar and dumped it inside
web-inf/services directory (I even tried the upload.jsp web
interface). But I don't seem to find myEchoExample listed as a
service. Did I miss something.
Plz kindly help.
Thanks in advance,
Jayachandra