MimeContentBinding.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // System.Web.Services.Description.MimeContentBinding.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.ComponentModel;
  10. using System.Web.Services.Configuration;
  11. using System.Xml.Serialization;
  12. namespace System.Web.Services.Description {
  13. [XmlFormatExtensionPrefix ("mime", "http://schemas.xmlsoap.org/wsdl/mime/")]
  14. [XmlFormatExtension ("content", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (InputBinding), typeof (OutputBinding))]
  15. public sealed class MimeContentBinding : ServiceDescriptionFormatExtension {
  16. #region Fields
  17. public const string Namespace = "http://schemas.xmlsoap.org/wsdl/mime/";
  18. string part;
  19. string type;
  20. #endregion // Fields
  21. #region Constructors
  22. public MimeContentBinding ()
  23. {
  24. part = String.Empty;
  25. type = String.Empty;
  26. }
  27. #endregion // Constructors
  28. #region Properties
  29. [DefaultValue ("")]
  30. [XmlAttribute ("part", DataType = "NMTOKEN")]
  31. public string Part {
  32. get { return part; }
  33. set { part = value; }
  34. }
  35. [XmlAttribute ("type")]
  36. public string Type {
  37. get { return type; }
  38. set { type = value; }
  39. }
  40. #endregion // Properties
  41. }
  42. }