SoapRpcMethodAttribute.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Web.Services.Protocols.SoapRpcMethodAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. namespace System.Web.Services.Protocols {
  10. [AttributeUsage (AttributeTargets.Method, Inherited = true)]
  11. public sealed class SoapRpcMethodAttribute : Attribute {
  12. #region Fields
  13. string action;
  14. string binding;
  15. bool oneWay;
  16. string requestElementName;
  17. string requestNamespace;
  18. string responseElementName;
  19. string responseNamespace;
  20. #endregion // Fields
  21. #region Constructors
  22. public SoapRpcMethodAttribute ()
  23. {
  24. }
  25. public SoapRpcMethodAttribute (string action)
  26. : this ()
  27. {
  28. this.action = action;
  29. }
  30. #endregion // Constructors
  31. #region Properties
  32. public string Action {
  33. get { return action != null ? action : ""; }
  34. set { action = value; }
  35. }
  36. public string Binding {
  37. get { return binding; }
  38. set { binding = value; }
  39. }
  40. public bool OneWay {
  41. get { return oneWay; }
  42. set { oneWay = value; }
  43. }
  44. public string RequestElementName {
  45. get { return requestElementName != null ? requestElementName : ""; }
  46. set { requestElementName = value; }
  47. }
  48. public string RequestNamespace {
  49. get { return requestNamespace != null ? requestNamespace : ""; }
  50. set { requestNamespace = value; }
  51. }
  52. public string ResponseElementName {
  53. get { return responseElementName != null ? responseElementName : ""; }
  54. set { responseElementName = value; }
  55. }
  56. public string ResponseNamespace {
  57. get { return responseNamespace != null ? responseNamespace : ""; }
  58. set { responseNamespace = value; }
  59. }
  60. #endregion // Properties
  61. }
  62. }