01: package org.objectweb.celtix.systest.routing;
02:
03: import javax.jws.WebService;
04: import org.objectweb.hello_world_doc_lit.Greeter;
05: import org.objectweb.hello_world_doc_lit.PingMeFault;
06: import org.objectweb.hello_world_doc_lit.types.FaultDetail;
07:
08: @WebService(endpointInterface="org.objectweb.hello_world_doc_lit.Greeter")
09: public class DocLitWrappedImpl implements Greeter {
10:
11: public String greetMe(String me) {
12: return "Hello " + me;
13: }
14:
15: public String sayHi() {
16: return "Bonjour";
17: }
18:
19: public void pingMe() throws PingMeFault {
20: FaultDetail fd = new FaultDetail();
21: fd.setMajor((short) 2);
22: fd.setMinor((short) 1);
23: throw new PingMeFault("Test Exception", fd);
24: }
25:
26: public void greetMeOneWay(String requestType) {
27: System.out.println("greetMeOneWay: " + requestType);
28: }
29: }
|