SoapHeaderFaultBinding.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. bool mapToProperty;
  19. XmlQualifiedName message;
  20. string ns;
  21. string part;
  22. SoapBindingUse use;
  23. #endregion // Fields
  24. #region Constructors
  25. [MonoTODO]
  26. public SoapHeaderFaultBinding ()
  27. {
  28. encoding = String.Empty;
  29. mapToProperty = false; // FIXME: is this right?
  30. message = XmlQualifiedName.Empty;
  31. ns = String.Empty;
  32. part = String.Empty;
  33. use = SoapBindingUse.Default;
  34. }
  35. #endregion // Constructors
  36. #region Properties
  37. [DefaultValue ("")]
  38. [XmlAttribute ("encodingStyle")]
  39. public string Encoding {
  40. get { return encoding; }
  41. set { encoding = value; }
  42. }
  43. [XmlAttribute ("message")]
  44. public XmlQualifiedName Message {
  45. get { return message; }
  46. set { message = value; }
  47. }
  48. [DefaultValue ("")]
  49. [XmlAttribute ("namespace")]
  50. public string Namespace {
  51. get { return ns; }
  52. set { ns = value; }
  53. }
  54. [XmlAttribute ("part", DataType = "NMTOKEN")]
  55. public string Part {
  56. get { return part; }
  57. set { part = value; }
  58. }
  59. [DefaultValue (SoapBindingUse.Default)]
  60. [XmlAttribute ("use")]
  61. public SoapBindingUse Use {
  62. get { return use; }
  63. set { use = value; }
  64. }
  65. #endregion // Properties
  66. }
  67. }