2 // System.Web.Services.Protocols.WebServiceHandler.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
6 // Lluis Sanchez Gual (lluis@ximian.com)
\r
8 // Copyright (C) Tim Coleman, 2002
\r
12 using System.Reflection;
\r
14 using System.Web.Services;
\r
15 using System.Web.SessionState;
\r
17 namespace System.Web.Services.Protocols
\r
19 internal class WebServiceHandler: IHttpHandler
\r
23 HttpSessionState session;
26 public WebServiceHandler (Type type)
\r
31 public Type ServiceType
\r
33 get { return _type; }
\r
36 public virtual bool IsReusable
\r
38 get { return false; }
\r
41 protected HttpContext Context {
42 set { _context = value; }
45 protected HttpSessionState Session {
46 set { this.session = value; }
49 public virtual void ProcessRequest (HttpContext context)
\r
53 protected object CreateServerInstance ()
\r
55 object ws = Activator.CreateInstance (ServiceType);
\r
56 WebService wsi = ws as WebService;
\r
58 wsi.SetContext (_context);
59 wsi.SetSession (session);
66 protected IAsyncResult BeginCoreProcessRequest (AsyncCallback callback, object o)
\r
68 throw new NotImplementedException ();
\r
72 protected void CoreProcessRequest ()
\r
74 throw new NotImplementedException ();
\r
78 protected void EndCoreProcessRequest (IAsyncResult result)
\r
80 throw new NotImplementedException ();
\r
84 private void WriteReturns (object[] returnValues)
\r
86 //protocol.WriteReturns (returnValues, outputStream);
\r
87 throw new NotImplementedException ();
\r