| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- //
- // 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 Constructors
- internal SoapMessage ()
- {
- }
- #endregion
- #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
- }
- }
|