The goal of this lab is to develop a first example of a web service using Axis2. This is simply to display the famous: HELLO WORLD.
- helloService - META-INF - services.xml - hello - HelloWorld.java
package hello; public class HelloWorld{ public String sayHello() { return "Hello world!"; } }
<service name="HelloWorldService" scope="application"> <description> Hello World Service </description> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceClass"> hello.HelloWorld </parameter> </service>