SoapHeaderFaultBinding.cs 1.7 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. [XmlFormatExtension ("headerfault", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (InputBinding), typeof (OutputBinding))]
  15. public sealed class SoapHeaderFaultBinding : ServiceDescriptionFormatExtension {
  16. #region Fields
  17. string encoding;
  18. XmlQualifiedName message;
  19. string ns;
  20. string part;
  21. SoapBindingUse use;
  22. #endregion // Fields
  23. #region Constructors
  24. [MonoTODO]
  25. public SoapHeaderFaultBinding ()
  26. {
  27. encoding = String.Empty;
  28. message = XmlQualifiedName.Empty;
  29. ns = String.Empty;
  30. part = String.Empty;
  31. use = SoapBindingUse.Default;
  32. }
  33. #endregion // Constructors
  34. #region Properties
  35. [DefaultValue ("")]
  36. [XmlAttribute ("encodingStyle")]
  37. public string Encoding {
  38. get { return encoding; }
  39. set { encoding = value; }
  40. }
  41. [XmlAttribute ("message")]
  42. public XmlQualifiedName Message {
  43. get { return message; }
  44. set { message = value; }
  45. }
  46. [DefaultValue ("")]
  47. [XmlAttribute ("namespace")]
  48. public string Namespace {
  49. get { return ns; }
  50. set { ns = value; }
  51. }
  52. [XmlAttribute ("part", DataType = "NMTOKEN")]
  53. public string Part {
  54. get { return part; }
  55. set { part = value; }
  56. }
  57. [DefaultValue (SoapBindingUse.Default)]
  58. [XmlAttribute ("use")]
  59. public SoapBindingUse Use {
  60. get { return use; }
  61. set { use = value; }
  62. }
  63. #endregion // Properties
  64. }
  65. }