2 // System.Web.Services.Protocols.ServerProtocol.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2002
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 using System
.Web
.Services
;
35 namespace System
.Web
.Services
.Protocols
{
36 [MonoTODO ("Figure out what this class does.")]
37 internal abstract class ServerProtocol
{
43 internal ServerProtocol (HttpContext context
)
48 protected ServerProtocol ()
50 throw new NotImplementedException ();
57 public HttpContext Context
{
58 get { return _context; }
61 public abstract bool IsOneWay
{
65 public abstract LogicalMethodInfo MethodInfo
{
70 public virtual Exception OnewayInitException
{
71 get { throw new NotImplementedException (); }
74 public HttpRequest Request
{
75 get { return _context.Request; }
78 public HttpResponse Response
{
79 get { return _context.Response; }
87 protected void AddToCache (Type t1
, Type t2
, object o
)
89 throw new NotImplementedException ();
93 public virtual void CreateServerInstance ()
95 throw new NotImplementedException ();
99 public virtual void DisposeServerInstance ()
101 throw new NotImplementedException ();
105 public string GenerateFaultString (Exception exception
)
107 throw new NotImplementedException ();
111 protected object GetFromCache (Type t1
, Type t2
)
113 throw new NotImplementedException ();
116 public abstract bool Initialize ();
118 public abstract object[] ReadParameters ();
121 public virtual bool WriteException (Exception e
, Stream outputStream
)
123 throw new NotImplementedException ();
127 public void WriteOneWayResponse ()
129 throw new NotImplementedException ();
132 public abstract void WriteReturns (object[] returnValues
, Stream outputStream
);