SoapClientMessage.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / SoapClientMessage.cs / 1305376 / SoapClientMessage.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Services.Protocols { 
    using System.Web.Services; 
    using System.Xml.Serialization;
    using System; 
    using System.Reflection;
    using System.Collections;
    using System.IO;
    using System.ComponentModel; 
    using System.Runtime.InteropServices;
 
    ///  
    /// 
    ///    [To be supplied.] 
    /// 
    public sealed class SoapClientMessage : SoapMessage {
        SoapClientMethod method;
        SoapHttpClientProtocol protocol; 
        string url;
 
        internal SoapExtension[] initializedExtensions; 

        internal SoapClientMessage(SoapHttpClientProtocol protocol, SoapClientMethod method, string url) { 
            this.method = method;
            this.protocol = protocol;
            this.url = url;
        } 

        /* 
        internal override bool IsInitialized { 
            get { return true; }
        } 
        */

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public override bool OneWay { 
            get { return method.oneWay; }
        } 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public SoapHttpClientProtocol Client { 
            get { return protocol; } 
        }
 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        public override LogicalMethodInfo MethodInfo {
            get { return method.methodInfo; } 
        } 

        /* 
        internal override SoapReflectedExtension[] Extensions {
            get { return method.extensions; }
        }
 
        internal override object[] ExtensionInitializers {
            get { return method.extensionInitializers; } 
        } 
        */
 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        public override string Url {
            get { return url; } 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public override string Action { 
            get { return method.action; }
        } 
 
        /// 
        [ComVisible(false)] 
        public override SoapProtocolVersion SoapVersion {
            get { return protocol.SoapVersion == SoapProtocolVersion.Default ? SoapProtocolVersion.Soap11 : protocol.SoapVersion; }
        }
 
        internal SoapClientMethod Method {
            get { return method; } 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        protected override void EnsureOutStage() { 
            EnsureStage(SoapMessageStage.AfterDeserialize);
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        protected override void EnsureInStage(){
            EnsureStage(SoapMessageStage.BeforeSerialize); 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK