mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
reflector if the TypeStubInfo does not provide one. Do not create XmlSchemaExporter. Take it from the service reflector, sine it must be reused for all protocol reflectors. Moved some code to SoapProtocolReflector, since it cannot be reused for all reflectors. * ServiceDescriptionReflector.cs: Reflect the type for all available protocols. * SoapProtocolReflector.cs: Moved here some code from ProtoclReflector. * HttpGetProtocolReflector.cs, HttpPostProtocolReflector.cs, HttpSimpleProtocolReflector.cs: new files. svn path=/trunk/mcs/; revision=18576
57 lines
1011 B
C#
57 lines
1011 B
C#
//
|
|
// System.Web.Services.Description.HttpGetProtocolReflector.cs
|
|
//
|
|
// Author:
|
|
// Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// (C) 2003 Ximian, Inc.
|
|
//
|
|
|
|
using System.Web.Services;
|
|
using System.Web.Services.Protocols;
|
|
using System.Xml.Serialization;
|
|
using System.Xml;
|
|
|
|
namespace System.Web.Services.Description {
|
|
|
|
internal class HttpGetProtocolReflector : HttpSimpleProtocolReflector
|
|
{
|
|
#region Constructors
|
|
|
|
public HttpGetProtocolReflector ()
|
|
{
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
public override string ProtocolName {
|
|
get { return "HttpGet"; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Methods
|
|
|
|
protected override void BeginClass ()
|
|
{
|
|
base.BeginClass ();
|
|
|
|
HttpBinding hb = new HttpBinding ();
|
|
hb.Verb = "GET";
|
|
Binding.Extensions.Add (hb);
|
|
}
|
|
|
|
protected override bool ReflectMethod ()
|
|
{
|
|
if (!base.ReflectMethod ()) return false;
|
|
|
|
OperationBinding.Input.Extensions.Add (new HttpUrlEncodedBinding());
|
|
return true;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|