//\r
// Copyright (C) Tim Coleman, 2002\r
//\r
+// TODO:\r
+// Need to set the stream variable from the outside, or the constructor.\r
+//\r
\r
using System.IO;\r
using System.Web.Services;\r
\r
#region Fields\r
\r
- string contentType = "text/xml";\r
+ string content_type = "text/xml";\r
SoapException exception = null;\r
SoapHeaderCollection headers = null;\r
SoapMessageStage stage;\r
-\r
+ Stream stream;\r
+ \r
#endregion // Fields\r
\r
+ #region Constructors\r
+\r
+ internal SoapMessage ()\r
+ {\r
+ }\r
+\r
+ #endregion\r
+\r
#region Properties\r
\r
public abstract string Action {\r
}\r
\r
public string ContentType {\r
- get { return contentType; }\r
- set { contentType = value; }\r
+ get { return content_type; }\r
+ set { content_type = value; }\r
}\r
\r
public SoapException Exception {\r
get { return stage; }\r
}\r
\r
+ internal void SetStage (SoapMessageStage stage)\r
+ {\r
+ this.stage = stage;\r
+ }\r
+ \r
public Stream Stream {\r
- [MonoTODO]\r
- get { throw new NotImplementedException (); }\r
+ get {\r
+ return stream;\r
+ }\r
}\r
\r
public abstract string Url {\r
protected abstract void EnsureInStage ();\r
protected abstract void EnsureOutStage ();\r
\r
- [MonoTODO]\r
protected void EnsureStage (SoapMessageStage stage) \r
{\r
- throw new NotImplementedException ();\r
+ if ((((int) stage) & ((int) Stage)) == 0)\r
+ throw new InvalidOperationException ("The current SoapMessageStage is not the asserted stage or stages.");\r
}\r
\r
[MonoTODO]\r