| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- //
- // System.Web.Services.Protocols.SoapMessage.cs
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- //
- using System.IO;
- using System.Web.Services;
- namespace System.Web.Services.Protocols {
- public abstract class SoapMessage {
- #region Fields
- string contentType = "text/xml";
- SoapException exception = null;
- SoapHeaderCollection headers = null;
- SoapMessageStage stage;
- #endregion // Fields
- #region Properties
- public abstract string Action {
- get;
- }
- public string ContentType {
- get { return contentType; }
- set { contentType = value; }
- }
- public SoapException Exception {
- get { return exception; }
- }
- public SoapHeaderCollection Headers {
- get { return headers; }
- }
- public abstract LogicalMethodInfo MethodInfo {
- get;
- }
- public abstract bool OneWay {
- get;
- }
- public SoapMessageStage Stage {
- get { return stage; }
- }
- public Stream Stream {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public abstract string Url {
- get;
- }
- #endregion Properties
- #region Methods
- protected abstract void EnsureInStage ();
- protected abstract void EnsureOutStage ();
- protected void EnsureStage (SoapMessageStage stage)
- {
- if ((((int) stage) & ((int) Stage)) == 0)
- throw new InvalidOperationException ("The current SoapMessageStage is not the asserted stage or stages.");
- }
- [MonoTODO]
- public object GetInParameterValue (int index)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object GetOutParameterValue (int index)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object GetReturnValue ()
- {
- throw new NotImplementedException ();
- }
- #endregion // Methods
- }
- }
|