SoapOperationBinding.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // System.Web.Services.Description.SoapOperationBinding.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 ("operation", "http://schema.xmlsoap.org/wsdl/soap/", typeof (OperationBinding))]
  14. public sealed class SoapOperationBinding : ServiceDescriptionFormatExtension {
  15. #region Fields
  16. string soapAction;
  17. SoapBindingStyle style;
  18. #endregion // Fields
  19. #region Constructors
  20. public SoapOperationBinding ()
  21. {
  22. soapAction = String.Empty;
  23. style = SoapBindingStyle.Document;
  24. }
  25. #endregion // Constructors
  26. #region Properties
  27. [XmlAttribute ("soapAction")]
  28. public string SoapAction {
  29. get { return soapAction; }
  30. set { soapAction = value; }
  31. }
  32. // LAMESPEC: .NET Documentation says that the default value for this property is
  33. // SoapBindingStyle.Document (see constructor), but reflection shows that this
  34. // attribute value is SoapBindingStyle.Default
  35. [DefaultValue (SoapBindingStyle.Default)]
  36. [XmlAttribute ("style")]
  37. public SoapBindingStyle Style {
  38. get { return style; }
  39. set { style = value; }
  40. }
  41. #endregion // Properties
  42. }
  43. }