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.soap;
30
31 import java.lang.annotation.Retention;
32 import java.lang.annotation.RetentionPolicy;
33 import java.lang.annotation.Target;
34 import java.lang.annotation.ElementType;
35
36 /**
37 * Specifies the mapping of the Web Service onto the SOAP message protocol.
38 *
39 * @author Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
40 *
41 */
42 @Retention(value=RetentionPolicy.RUNTIME)
43 @Target(value={ElementType.TYPE,ElementType.METHOD})
44 public @interface SOAPBinding {
45
46 /**
47 * The SOAP binding style
48 */
49 public enum Style {
50 DOCUMENT, RPC
51 };
52
53 /**
54 * The SOAP binding use
55 */
56 public enum Use {
57 LITERAL, ENCODED
58 };
59
60 /**
61 * The style of mapping parameters onto SOAP messages
62 */
63 public enum ParameterStyle {
64 BARE, WRAPPED
65 }
66
67 /**
68 * Defines the encoding style for messages send to and from the Web Service.
69 */
70 Style style() default Style.DOCUMENT;
71
72 /**
73 * Defines the formatting style for messages sent to and from the Web Service.
74 */
75 Use use() default Use.LITERAL;
76
77 /**
78 * Determines whether method parameters represent the entire message body, or whether the parameters are elements
79 * wrapped inside a top-level element named after the operation
80 */
81 ParameterStyle parameterStyle() default ParameterStyle.WRAPPED;
82 }
|