01 /**
02 * A very simple web service.
03 *
04 * @common:target-namespace namespace="http://workshop.bea.com/HelloWorld"
05 */
06 public class HelloWorld implements com.bea.jws.WebService
07 {
08 /**
09 * Demonstrates what a web service method looks
10 * like in its simplest form.
11 *
12 * This is a synchronous method, meaning
13 * that a client of this web service will block
14 * until this method returns. In this case,
15 * the method doesn't do any significant work
16 * so that is OK.
17 *
18 * The @returns tag is an example of a standard
19 * Javadoc tag. Other typical tags you might
20 * add to a method are @param, @exception, etc.
21 *
22 * The @common:operation tag is a Workshop-specific
23 * Javadoc tag that marks this method as an
24 * exposed method of the web service.
25 *
26 * @return 'Hello, World!', of course.
27 *
28 * @common:operation
29 */
30 public String Hello()
31 {
32 return "Hello, World!";
33 }
34 }
|