Files
mono/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpGetClientProtocol.cs
T
Lluis Sanchez 5d0e259a4e * SoapDocumentationHandler.cs: Moved here the code from
WebServiceHandlerFactory that generates the documentation page.
	* WebServiceHandlerFactory.cs: Moved the code that generates the doc page
	  to SoapDocumentationHandler.cs.
	* HttpGetClientProtocol.cs, HttpGetWebServiceHandler.cs,
	  HttpPostClientProtocol.cs, HttpPostWebServiceHandler.cs,
	  HttpSimpleWebServiceHandler.cs, HttpSoapWebServiceHandler.cs,
	  SoapHttpClientProtocol.cs: Changed parameters of GetTypeStub call.
	* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs: Added ProtocolName
	  property. Added check for valid parameters.
	* HttpSimpleTypeStubInfo.cs: Define return MimeFormatter in constructor.
	* Methods.cs: BindingInfo and related properties moved to base TypeStubInfo.
	  Added properties for XmlImporter and SoapImporter.
	* TypeStubManager.cs: Added BindingInfo and related properties.
	  Changed GetTypeStub method. Now it takes the name of the protocol for
	  which to get the type stub info.
	* ValueCollectionParameterReader.cs: IsSupported should only return true
	  for input primitive parameters or array of primitives.

svn path=/trunk/mcs/; revision=18575
2003-10-04 00:38:45 +00:00

42 lines
971 B
C#

//
// System.Web.Services.Protocols.HttpGetClientProtocol.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 HttpGetClientProtocol : HttpSimpleClientProtocol {
#region Constructors
public HttpGetClientProtocol ()
{
TypeStub = (HttpSimpleTypeStubInfo) TypeStubManager.GetTypeStub (GetType(), "HttpGet");
}
#endregion // Constructors
#region Methods
protected override WebRequest GetWebRequest (Uri uri)
{
if (uri == null)
throw new InvalidOperationException ("The uri parameter is null.");
if (uri.ToString () == String.Empty)
throw new InvalidOperationException ("The uri parameter has a length of zero.");
WebRequest request = WebRequest.Create (uri);
request.Method = "GET";
return request;
}
#endregion // Methods
}
}