SoapHeaderFaultBinding.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // System.Web.Services.Description.SoapHeaderFaultBinding.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;
  12. using System.Xml.Serialization;
  13. namespace System.Web.Services.Description {
  14. public class SoapHeaderFaultBinding : ServiceDescriptionFormatExtension {
  15. #region Fields
  16. string encoding;
  17. XmlQualifiedName message;
  18. string ns;
  19. string part;
  20. SoapBindingUse use;
  21. #endregion // Fields
  22. #region Constructors
  23. [MonoTODO]
  24. public SoapHeaderFaultBinding ()
  25. {
  26. encoding = String.Empty;
  27. message = XmlQualifiedName.Empty;
  28. ns = String.Empty;
  29. part = String.Empty;
  30. use = SoapBindingUse.Default;
  31. }
  32. #endregion // Constructors
  33. #region Properties
  34. [DefaultValue ("")]
  35. [XmlAttribute ("encodingStyle")]
  36. public string Encoding {
  37. get { return encoding; }
  38. set { encoding = value; }
  39. }
  40. [XmlAttribute ("message")]
  41. public XmlQualifiedName Message {
  42. get { return message; }
  43. set { message = value; }
  44. }
  45. [DefaultValue ("")]
  46. [XmlAttribute ("namespace")]
  47. public string Namespace {
  48. get { return ns; }
  49. set { ns = value; }
  50. }
  51. [XmlAttribute ("part", DataType = "NMTOKEN")]
  52. public string Part {
  53. get { return part; }
  54. set { part = value; }
  55. }
  56. [DefaultValue (SoapBindingUse.Default)]
  57. [XmlAttribute ("use")]
  58. public SoapBindingUse Use {
  59. get { return use; }
  60. set { use = value; }
  61. }
  62. #endregion // Properties
  63. }
  64. }