2 // System.Web.Services.Protocols.SoapMessage.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
11 using System.Web.Services;
\r
13 namespace System.Web.Services.Protocols {
\r
14 public abstract class SoapMessage {
\r
18 string contentType = "text/xml";
\r
19 SoapException exception = null;
\r
20 SoapHeaderCollection headers = null;
\r
21 SoapMessageStage stage;
\r
23 #endregion // Fields
\r
25 #region Constructors
\r
27 internal SoapMessage ()
\r
35 public abstract string Action {
\r
39 public string ContentType {
\r
40 get { return contentType; }
\r
41 set { contentType = value; }
\r
44 public SoapException Exception {
\r
45 get { return exception; }
\r
48 public SoapHeaderCollection Headers {
\r
49 get { return headers; }
\r
52 public abstract LogicalMethodInfo MethodInfo {
\r
56 public abstract bool OneWay {
\r
60 public SoapMessageStage Stage {
\r
61 get { return stage; }
\r
64 public Stream Stream {
\r
66 get { throw new NotImplementedException (); }
\r
69 public abstract string Url {
\r
73 #endregion Properties
\r
77 protected abstract void EnsureInStage ();
\r
78 protected abstract void EnsureOutStage ();
\r
80 protected void EnsureStage (SoapMessageStage stage)
\r
82 if ((((int) stage) & ((int) Stage)) == 0)
\r
83 throw new InvalidOperationException ("The current SoapMessageStage is not the asserted stage or stages.");
\r
87 public object GetInParameterValue (int index)
\r
89 throw new NotImplementedException ();
\r
93 public object GetOutParameterValue (int index)
\r
95 throw new NotImplementedException ();
\r
99 public object GetReturnValue ()
\r
101 throw new NotImplementedException ();
\r
104 #endregion // Methods
\r