| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- //
- // System.Web.Services.Protocols.SoapClientMessage.cs
- //
- // Authors:
- // Tim Coleman ([email protected])
- // Miguel de Icaza ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- // Copyright (C) Ximian, Inc. 2003
- //
- using System.Web.Services;
- using System.Web.Services.Protocols;
- namespace System.Web.Services.Protocols {
- public sealed class SoapClientMessage : SoapMessage {
- #region Fields
- SoapHttpClientProtocol client;
- string url;
- LogicalMethodInfo client_method;
- internal MethodStubInfo MethodStubInfo;
- //
- // Expose this one internally
- //
- internal object [] Parameters;
- #endregion
- #region Constructors
- //
- // Constructs the SoapClientMessage
- //
- internal SoapClientMessage (SoapHttpClientProtocol client, MethodStubInfo msi, string url, object [] parameters)
- {
- this.MethodStubInfo = msi;
- this.client = client;
- this.client_method = client_method;
- this.url = url;
- Parameters = parameters;
- foreach (HeaderInfo hi in msi.Headers) {
- SoapHeader headerVal = hi.GetHeaderValue (client) as SoapHeader;
- if (headerVal != null)
- Headers.Add (headerVal);
- }
- }
- #endregion
- #region Properties
- public override string Action {
- get { return MethodStubInfo.Action; }
- }
- public SoapHttpClientProtocol Client {
- get { return client; }
- }
- public override LogicalMethodInfo MethodInfo {
- get { return client_method; }
- }
- public override bool OneWay {
- get { return MethodStubInfo.OneWay; }
- }
- public override string Url {
- get { return url; }
- }
- #endregion // Properties
- #region Methods
- [MonoTODO]
- protected override void EnsureInStage ()
- {
- //
- // I believe for SoapClientMessage, we can safely remove this check
- // as the In parameters are always available
- //
- throw new NotImplementedException ();
- }
- protected override void EnsureOutStage ()
- {
- EnsureStage (SoapMessageStage.AfterDeserialize);
- }
- #endregion // Methods
- }
- }
|