Samples JDK
GreeterImpl.java
1 
2 /**
3  * Please modify this class to meet your needs
4  * This class is not complete
5  */
6 
7 package org.apache.hello_world_soap_http;
8 
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;
17 
18 /**
19  * This class was generated by Apache CXF 2.3.6
20  * 2016-02-18T23:36:32.443+05:30
21  * Generated source version: 2.3.6
22  *
23  */
24 
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")
31 
32 public class GreeterImpl implements Greeter {
33 
34  private static final Logger LOG = Logger.getLogger(GreeterImpl.class.getName());
35 
36  /* (non-Javadoc)
37  * @see org.apache.hello_world_soap_http.Greeter#pingMe(*
38  */
39  public void pingMe() throws PingMeFault {
40  LOG.info("Executing operation pingMe");
41  try {
42  } catch (java.lang.Exception ex) {
43  ex.printStackTrace();
44  throw new RuntimeException(ex);
45  }
46  //throw new PingMeFault("pingMeFault...");
47  }
48 
49  /* (non-Javadoc)
50  * @see org.apache.hello_world_soap_http.Greeter#greetMe(String requestType )*
51  */
52  public String greetMe(String requestType) {
53  LOG.info("Executing operation greetMe");
54  System.out.println(requestType);
55  try {
56  String _return = null;
57  return _return;
58  } catch (java.lang.Exception ex) {
59  ex.printStackTrace();
60  throw new RuntimeException(ex);
61  }
62  }
63 
64  /* (non-Javadoc)
65  * @see org.apache.hello_world_soap_http.Greeter#greetMeOneWay(String requestType )*
66  */
67  public void greetMeOneWay(String requestType) {
68  LOG.info("Executing operation greetMeOneWay");
69  System.out.println(requestType);
70  try {
71  } catch (java.lang.Exception ex) {
72  ex.printStackTrace();
73  throw new RuntimeException(ex);
74  }
75  }
76 
77  /* (non-Javadoc)
78  * @see org.apache.hello_world_soap_http.Greeter#sayHi(*
79  */
80  public String sayHi() {
81  LOG.info("Executing operation sayHi");
82  try {
83  String _return = null;
84  return _return;
85  } catch (java.lang.Exception ex) {
86  ex.printStackTrace();
87  throw new RuntimeException(ex);
88  }
89  }
90 
91 }