HttpPostClientProtocol.cs 827 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // System.Web.Services.Protocols.HttpPostClientProtocol.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Net;
  10. using System.Web.Services;
  11. namespace System.Web.Services.Protocols {
  12. public class HttpPostClientProtocol : HttpSimpleClientProtocol {
  13. #region Constructors
  14. public HttpPostClientProtocol ()
  15. {
  16. }
  17. #endregion // Constructors
  18. #region Methods
  19. protected override WebRequest GetWebRequest (Uri uri)
  20. {
  21. if (null == uri)
  22. throw new InvalidOperationException ("The uri parameter is a null reference.");
  23. if (String.Empty == uri.ToString ())
  24. throw new InvalidOperationException ("The uri parameter has a length of zero.");
  25. return WebRequest.Create (uri);
  26. }
  27. #endregion // Methods
  28. }
  29. }