HttpGetProtocolReflector.cs 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // System.Web.Services.Description.HttpGetProtocolReflector.cs
  3. //
  4. // Author:
  5. // Lluis Sanchez Gual ([email protected])
  6. //
  7. // (C) 2003 Ximian, Inc.
  8. //
  9. using System.Web.Services;
  10. using System.Web.Services.Protocols;
  11. using System.Xml.Serialization;
  12. using System.Xml;
  13. namespace System.Web.Services.Description {
  14. internal class HttpGetProtocolReflector : HttpSimpleProtocolReflector
  15. {
  16. #region Constructors
  17. public HttpGetProtocolReflector ()
  18. {
  19. }
  20. #endregion // Constructors
  21. #region Properties
  22. public override string ProtocolName {
  23. get { return "HttpGet"; }
  24. }
  25. #endregion // Properties
  26. #region Methods
  27. protected override void BeginClass ()
  28. {
  29. base.BeginClass ();
  30. HttpBinding hb = new HttpBinding ();
  31. hb.Verb = "GET";
  32. Binding.Extensions.Add (hb);
  33. }
  34. protected override bool ReflectMethod ()
  35. {
  36. if (!base.ReflectMethod ()) return false;
  37. OperationBinding.Input.Extensions.Add (new HttpUrlEncodedBinding());
  38. return true;
  39. }
  40. #endregion
  41. }
  42. }