2 // System.Web.Services.Protocols.SoapDocumentMethodAttribute.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2002
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
;
33 namespace System
.Web
.Services
.Protocols
{
34 [AttributeUsage (AttributeTargets
.Method
, Inherited
= true)]
35 public sealed class SoapDocumentMethodAttribute
: Attribute
{
42 SoapParameterStyle parameterStyle
;
43 string requestElementName
;
44 string requestNamespace
;
45 string responseElementName
;
46 string responseNamespace
;
53 public SoapDocumentMethodAttribute ()
57 public SoapDocumentMethodAttribute (string action
)
63 #endregion // Constructors
67 public string Action
{
68 get { return action; }
69 set { action = value; }
72 public string Binding
{
78 set { binding = value; }
82 get { return oneWay; }
83 set { oneWay = value; }
86 public SoapParameterStyle ParameterStyle
{
87 get { return parameterStyle; }
88 set { parameterStyle = value; }
91 public string RequestElementName
{
93 if (requestElementName
== null)
95 return requestElementName
;
97 set { requestElementName = value; }
100 public string RequestNamespace
{
102 if (requestNamespace
== null)
105 return requestNamespace
;
107 set { requestNamespace = value; }
110 public string ResponseElementName
{
112 if (responseElementName
== null)
114 return responseElementName
;
116 set { responseElementName = value; }
119 public string ResponseNamespace
{
121 if (responseNamespace
== null)
123 return responseNamespace
;
125 set { responseNamespace = value; }
128 public SoapBindingUse Use
{
133 #endregion // Properties