01: package demo.hwRPCLit.server;
02:
03: import java.util.logging.Logger;
04: import org.objectweb.hello_world_rpclit.GreeterRPCLit;
05: import org.objectweb.hello_world_rpclit.types.MyComplexStruct;
06:
07: @javax.jws.WebService(name="GreeterRPCLit",serviceName="SOAPServiceRPCLit",targetNamespace="http://objectweb.org/hello_world_rpclit",wsdlLocation="file:./wsdl/hello_world_RPCLit.wsdl")
08: public class GreeterRPCLitImpl implements GreeterRPCLit {
09:
10: private static final Logger LOG = Logger
11: .getLogger(GreeterRPCLitImpl.class.getPackage().getName());
12:
13: public String greetMe(String me) {
14: LOG.info("Executing operation greetMe");
15: System.out.println("Executing operation greetMe");
16: System.out.println("Message received: " + me + "\n");
17: return "Hello " + me;
18: }
19:
20: public String sayHi() {
21: LOG.info("Executing operation sayHi");
22: System.out.println("Executing operation sayHi" + "\n");
23: return "Bonjour";
24: }
25:
26: public MyComplexStruct sendReceiveData(MyComplexStruct in) {
27: LOG.info("Executing operation sendReceiveData");
28: System.out.println("Executing operation sendReceiveData");
29: System.out
30: .println("Received struct with values :\nElement-1 : "
31: + in.getElem1() + "\nElement-2 : "
32: + in.getElem2() + "\nElement-3 : "
33: + in.getElem3() + "\n");
34: return in;
35: }
36: }
|