SoapDocumentServiceAttribute.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // System.Web.Services.Protocols.SoapDocumentServiceAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services.Description;
  10. namespace System.Web.Services.Protocols {
  11. [AttributeUsage (AttributeTargets.Class)]
  12. public sealed class SoapDocumentServiceAttribute : Attribute {
  13. #region Fields
  14. SoapParameterStyle paramStyle;
  15. SoapServiceRoutingStyle routingStyle;
  16. SoapBindingUse use;
  17. #endregion
  18. #region Constructors
  19. public SoapDocumentServiceAttribute ()
  20. {
  21. paramStyle = SoapParameterStyle.Wrapped;
  22. routingStyle = SoapServiceRoutingStyle.SoapAction;
  23. use = SoapBindingUse.Literal;
  24. }
  25. public SoapDocumentServiceAttribute (SoapBindingUse use)
  26. : this ()
  27. {
  28. this.use = use;
  29. }
  30. public SoapDocumentServiceAttribute (SoapBindingUse use, SoapParameterStyle paramStyle)
  31. : this ()
  32. {
  33. this.use = use;
  34. this.paramStyle = paramStyle;
  35. }
  36. #endregion // Constructors
  37. #region Properties
  38. public SoapParameterStyle ParameterStyle {
  39. get { return paramStyle; }
  40. set { paramStyle = value; }
  41. }
  42. public SoapServiceRoutingStyle RoutingStyle {
  43. get { return routingStyle; }
  44. set { routingStyle = value; }
  45. }
  46. public SoapBindingUse Use {
  47. get { return use; }
  48. set { use = value; }
  49. }
  50. #endregion // Properties
  51. }
  52. }