01: package example;
02:
03: import javax.jws.WebService;
04: import javax.jws.WebMethod;
05:
06: /**
07: * The Greeting service returns a simple string.
08: */
09: @WebService
10: public class GreetingImpl implements GreetingAPI {
11: private String _greeting = "Hello, world";
12:
13: /**
14: * Configures the greeting.
15: */
16: public void setGreeting(String greeting) {
17: _greeting = greeting;
18: }
19:
20: /**
21: * Returns the greeting string.
22: */
23: public String greeting() {
24: return _greeting;
25: }
26: }
|