| 12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // System.Web.Services.Protocols.HttpPostClientProtocol.cs
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- //
- using System.Net;
- using System.Web.Services;
- namespace System.Web.Services.Protocols {
- public class HttpPostClientProtocol : HttpSimpleClientProtocol {
- #region Constructors
- public HttpPostClientProtocol ()
- {
- }
-
- #endregion // Constructors
- #region Methods
- protected override WebRequest GetWebRequest (Uri uri)
- {
- if (null == uri)
- throw new InvalidOperationException ("The uri parameter is a null reference.");
- if (String.Empty == uri.ToString ())
- throw new InvalidOperationException ("The uri parameter has a length of zero.");
- return WebRequest.Create (uri);
- }
- #endregion // Methods
- }
- }
|