SoapFaultBinding.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // System.Web.Services.Description.SoapFaultBinding.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. [XmlFormatExtension ("fault", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (FaultBinding))]
  14. public sealed class SoapFaultBinding : ServiceDescriptionFormatExtension {
  15. #region Fields
  16. string encoding;
  17. string ns;
  18. SoapBindingUse use;
  19. #endregion // Fields
  20. #region Constructors
  21. public SoapFaultBinding ()
  22. {
  23. encoding = String.Empty;
  24. ns = String.Empty;
  25. use = SoapBindingUse.Default;
  26. }
  27. #endregion // Constructors
  28. #region Properties
  29. [XmlAttribute ("encodingStyle")]
  30. public string Encoding {
  31. get { return encoding; }
  32. set { encoding = value; }
  33. }
  34. [XmlAttribute ("namespace")]
  35. public string Namespace {
  36. get { return ns; }
  37. set { ns = value; }
  38. }
  39. [DefaultValue (SoapBindingUse.Default)]
  40. [XmlAttribute ("use")]
  41. public SoapBindingUse Use {
  42. get { return use; }
  43. set { use = value; }
  44. }
  45. #endregion // Properties
  46. }
  47. }