01 /*
02 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
03 *
04 * This code is free software; you can redistribute it and/or modify it
05 * under the terms of the GNU General Public License version 2 only, as
06 * published by the Free Software Foundation. Sun designates this
07 * particular file as subject to the "Classpath" exception as provided
08 * by Sun in the LICENSE file that accompanied this code.
09 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 * CA 95054 USA or visit www.sun.com if you need additional information or
22 * have any questions.
23 */
24
25 /*
26 * Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
27 */
28
29 package javax.jws;
30
31 import java.lang.annotation.Target;
32 import java.lang.annotation.ElementType;
33 import java.lang.annotation.Retention;
34 import java.lang.annotation.RetentionPolicy;
35
36 /**
37 * Customizes a method that is exposed as a Web Service operation.
38 * The associated method must be public and its parameters return value,
39 * and exceptions must follow the rules defined in JAX-RPC 1.1, section 5.
40 *
41 * The method is not required to throw java.rmi.RemoteException.
42 *
43 * @author Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
44 */
45 @Retention(value=RetentionPolicy.RUNTIME)
46 @Target({ElementType.METHOD})
47 public @interface WebMethod {
48
49 /**
50 * Name of the wsdl:operation matching this method.
51 *
52 * @specdefault Name of the Java method.
53 */
54 String operationName() default "";
55
56 /**
57 * The action for this operation.
58 * <p>
59 * For SOAP bindings, this determines the value of the soap action.
60 */
61 String action() default "";
62
63 /**
64 * Marks a method to NOT be exposed as a web method.
65 * <p>
66 * Used to stop an inherited method from being exposed as part of this web service.
67 * If this element is specified, other elements MUST NOT be specified for the @WebMethod.
68 * <p>
69 * <i>This member-value is not allowed on endpoint interfaces.</i>
70 *
71 * @since 2.0
72 */
73 boolean exclude() default false;
74 };
|