2 // System.Web.Services.Protocols.WebServiceHandler.cs
5 // Tim Coleman (tim@timcoleman.com)
6 // Lluis Sanchez Gual (lluis@ximian.com)
8 // Copyright (C) Tim Coleman, 2002
12 using System.Reflection;
14 using System.Web.Services;
15 using System.Web.SessionState;
17 namespace System.Web.Services.Protocols
19 internal class WebServiceHandler: IHttpHandler
23 HttpSessionState session;
26 public WebServiceHandler (Type type)
31 public Type ServiceType
36 public virtual bool IsReusable
41 protected HttpContext Context {
42 set { _context = value; }
45 protected HttpSessionState Session {
46 set { this.session = value; }
49 public virtual bool EnableSession {
53 public virtual void ProcessRequest (HttpContext context)
57 protected object CreateServerInstance ()
59 object ws = Activator.CreateInstance (ServiceType);
60 WebService wsi = ws as WebService;
62 wsi.SetContext (_context);
63 wsi.SetSession (session);
70 protected IAsyncResult BeginCoreProcessRequest (AsyncCallback callback, object o)
72 throw new NotImplementedException ();
76 protected void CoreProcessRequest ()
78 throw new NotImplementedException ();
82 protected void EndCoreProcessRequest (IAsyncResult result)
84 throw new NotImplementedException ();
88 private void WriteReturns (object[] returnValues)
90 //protocol.WriteReturns (returnValues, outputStream);
91 throw new NotImplementedException ();