2 // System.Web.Services.Protocols.SoapDocumentMethodAttribute.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Web.Services.Description;
\r
33 namespace System.Web.Services.Protocols {
\r
34 [AttributeUsage (AttributeTargets.Method, Inherited = true)]
\r
35 public sealed class SoapDocumentMethodAttribute : Attribute {
\r
42 SoapParameterStyle parameterStyle;
\r
43 string requestElementName;
\r
44 string requestNamespace;
\r
45 string responseElementName;
\r
46 string responseNamespace;
\r
51 #region Constructors
\r
53 public SoapDocumentMethodAttribute ()
\r
57 public SoapDocumentMethodAttribute (string action)
\r
60 this.action = action;
\r
63 #endregion // Constructors
\r
67 public string Action {
\r
68 get { return action; }
\r
69 set { action = value; }
\r
72 public string Binding {
\r
74 if (binding != null)
\r
78 set { binding = value; }
\r
81 public bool OneWay {
\r
82 get { return oneWay; }
\r
83 set { oneWay = value; }
\r
86 public SoapParameterStyle ParameterStyle {
\r
87 get { return parameterStyle; }
\r
88 set { parameterStyle = value; }
\r
91 public string RequestElementName {
\r
93 if (requestElementName == null)
\r
95 return requestElementName;
\r
97 set { requestElementName = value; }
\r
100 public string RequestNamespace {
\r
102 if (requestNamespace == null)
\r
105 return requestNamespace;
\r
107 set { requestNamespace = value; }
\r
110 public string ResponseElementName {
\r
112 if (responseElementName == null)
\r
114 return responseElementName;
\r
116 set { responseElementName = value; }
\r
119 public string ResponseNamespace {
\r
121 if (responseNamespace == null)
\r
123 return responseNamespace;
\r
125 set { responseNamespace = value; }
\r
128 public SoapBindingUse Use {
\r
129 get { return use; }
\r
130 set { use = value; }
\r
133 #endregion // Properties
\r