2 // System.Web.Services.Description.MimeContentBinding.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.Web.Services.Configuration;
\r
11 using System.Xml.Serialization;
\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
20 public const string Namespace = "http://schemas.xmlsoap.org/wsdl/mime/";
\r
24 #endregion // Fields
\r
26 #region Constructors
\r
28 public MimeContentBinding ()
\r
30 part = String.Empty;
\r
31 type = String.Empty;
\r
34 #endregion // Constructors
\r
38 [XmlAttribute ("part", DataType = "NMTOKEN")]
\r
39 public string Part {
\r
40 get { return part; }
\r
41 set { part = value; }
\r
44 [XmlAttribute ("type")]
\r
45 public string Type {
\r
46 get { return type; }
\r
47 set { type = value; }
\r
50 #endregion // Properties
\r