2002-08-12 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Description / MimeContentBinding.cs
1 // \r
2 // System.Web.Services.Description.MimeContentBinding.cs\r
3 //\r
4 // Author:\r
5 //   Tim Coleman (tim@timcoleman.com)\r
6 //\r
7 // Copyright (C) Tim Coleman, 2002\r
8 //\r
9 \r
10 using System.Web.Services.Configuration;\r
11 using System.Xml.Serialization;\r
12 \r
13 namespace System.Web.Services.Description {\r
14         [XmlFormatExtensionPrefix ("mime", "http://schemas.xmlsoap.org/wsdl/mime/")]\r
15         [XmlFormatExtension ("content", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (InputBinding), typeof (OutputBinding))]\r
16         public sealed class MimeContentBinding : ServiceDescriptionFormatExtension {\r
17 \r
18                 #region Fields\r
19 \r
20                 public const string Namespace = "http://schemas.xmlsoap.org/wsdl/mime/";\r
21                 string part;\r
22                 string type;\r
23 \r
24                 #endregion // Fields\r
25 \r
26                 #region Constructors\r
27                 \r
28                 public MimeContentBinding ()\r
29                 {\r
30                         part = String.Empty;\r
31                         type = String.Empty;\r
32                 }\r
33                 \r
34                 #endregion // Constructors\r
35 \r
36                 #region Properties\r
37 \r
38                 [XmlAttribute ("part", DataType = "NMTOKEN")]   \r
39                 public string Part {\r
40                         get { return part; }\r
41                         set { part = value; }\r
42                 }\r
43 \r
44                 [XmlAttribute ("type")]\r
45                 public string Type {\r
46                         get { return type; }\r
47                         set { type = value; }\r
48                 }\r
49 \r
50                 #endregion // Properties\r
51         }\r
52 }\r