MimeContentBinding.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.Web.Services.Configuration;
  10. using System.Xml.Serialization;
  11. namespace System.Web.Services.Description {
  12. [XmlFormatExtensionPrefix ("mime", "http://schemas.xmlsoap.org/wsdl/mime/")]
  13. [XmlFormatExtension ("content", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (InputBinding), typeof (OutputBinding))]
  14. public sealed class MimeContentBinding : ServiceDescriptionFormatExtension {
  15. #region Fields
  16. public const string Namespace = "http://schemas.xmlsoap.org/wsdl/mime/";
  17. string part;
  18. string type;
  19. #endregion // Fields
  20. #region Constructors
  21. public MimeContentBinding ()
  22. {
  23. part = String.Empty;
  24. type = String.Empty;
  25. }
  26. #endregion // Constructors
  27. #region Properties
  28. [XmlAttribute ("part", DataType = "NMTOKEN")]
  29. public string Part {
  30. get { return part; }
  31. set { part = value; }
  32. }
  33. [XmlAttribute ("type")]
  34. public string Type {
  35. get { return type; }
  36. set { type = value; }
  37. }
  38. #endregion // Properties
  39. }
  40. }