(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / SoapDocumentMethodAttribute.cs
blobb70fb603467c9fde6c6427611414bf4ba87c83a8
1 //
2 // System.Web.Services.Protocols.SoapDocumentMethodAttribute.cs
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
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:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
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;
33 namespace System.Web.Services.Protocols {
34 [AttributeUsage (AttributeTargets.Method, Inherited = true)]
35 public sealed class SoapDocumentMethodAttribute : Attribute {
37 #region Fields
39 string action;
40 string binding;
41 bool oneWay;
42 SoapParameterStyle parameterStyle;
43 string requestElementName;
44 string requestNamespace;
45 string responseElementName;
46 string responseNamespace;
47 SoapBindingUse use;
49 #endregion
51 #region Constructors
53 public SoapDocumentMethodAttribute ()
57 public SoapDocumentMethodAttribute (string action)
58 : this ()
60 this.action = action;
63 #endregion // Constructors
65 #region Properties
67 public string Action {
68 get { return action; }
69 set { action = value; }
72 public string Binding {
73 get {
74 if (binding != null)
75 return binding;
76 return "";
78 set { binding = value; }
81 public bool OneWay {
82 get { return oneWay; }
83 set { oneWay = value; }
86 public SoapParameterStyle ParameterStyle {
87 get { return parameterStyle; }
88 set { parameterStyle = value; }
91 public string RequestElementName {
92 get {
93 if (requestElementName == null)
94 return "";
95 return requestElementName;
97 set { requestElementName = value; }
100 public string RequestNamespace {
101 get {
102 if (requestNamespace == null)
103 return "";
105 return requestNamespace;
107 set { requestNamespace = value; }
110 public string ResponseElementName {
111 get {
112 if (responseElementName == null)
113 return "";
114 return responseElementName;
116 set { responseElementName = value; }
119 public string ResponseNamespace {
120 get {
121 if (responseNamespace == null)
122 return "";
123 return responseNamespace;
125 set { responseNamespace = value; }
128 public SoapBindingUse Use {
129 get { return use; }
130 set { use = value; }
133 #endregion // Properties