01: package org.objectweb.celtix.systest.xml_wrapped;
02:
03: import org.objectweb.hello_world_xml_http.wrapped.Greeter;
04: import org.objectweb.hello_world_xml_http.wrapped.PingMeFault;
05: import org.objectweb.hello_world_xml_http.wrapped.types.FaultDetail;
06:
07: @javax.jws.WebService(serviceName="XMLService",portName="XMLPort",endpointInterface="org.objectweb.hello_world_xml_http.wrapped.Greeter",targetNamespace="http://objectweb.org/hello_world_xml_http/wrapped")
08: @javax.xml.ws.BindingType(value="http://celtix.objectweb.org/bindings/xmlformat")
09: public class GreeterImpl implements Greeter {
10:
11: public String greetMe(String me) {
12: return "Hello " + me;
13: }
14:
15: public void greetMeOneWay(String me) {
16: System.out.println("Executing operation greetMeOneWay\n");
17: System.out.println("Hello there " + me);
18: }
19:
20: public String sayHi() {
21: return "Bonjour";
22: }
23:
24: public void pingMe() throws PingMeFault {
25: FaultDetail faultDetail = new FaultDetail();
26: faultDetail.setMajor((short) 2);
27: faultDetail.setMinor((short) 1);
28: throw new PingMeFault("PingMeFault raised by server",
29: faultDetail);
30: }
31: }
|