7 package org.apache.hello_world_soap_http;
9 import java.util.logging.Logger;
10 import javax.jws.Oneway;
11 import javax.jws.WebMethod;
12 import javax.jws.WebParam;
13 import javax.jws.WebResult;
14 import javax.jws.WebService;
15 import javax.xml.ws.RequestWrapper;
16 import javax.xml.ws.ResponseWrapper;
25 @javax.jws.WebService(
26 serviceName =
"SOAPService",
27 portName =
"SoapPort",
28 targetNamespace =
"http://apache.org/hello_world_soap_http",
29 wsdlLocation =
"classpath:/com/freeminscafe/apache/commons/cxf/wsdl/sample1/helloworld.wsdl",
30 endpointInterface =
"org.apache.hello_world_soap_http.Greeter")
34 private static final Logger LOG = Logger.getLogger(
GreeterImpl.class.getName());
40 LOG.info(
"Executing operation pingMe");
42 }
catch (java.lang.Exception ex) {
44 throw new RuntimeException(ex);
52 public String greetMe(String requestType) {
53 LOG.info(
"Executing operation greetMe");
54 System.out.println(requestType);
56 String _return = null;
58 }
catch (java.lang.Exception ex) {
60 throw new RuntimeException(ex);
67 public void greetMeOneWay(String requestType) {
68 LOG.info(
"Executing operation greetMeOneWay");
69 System.out.println(requestType);
71 }
catch (java.lang.Exception ex) {
73 throw new RuntimeException(ex);
80 public String sayHi() {
81 LOG.info(
"Executing operation sayHi");
83 String _return = null;
85 }
catch (java.lang.Exception ex) {
87 throw new RuntimeException(ex);