SoapRpcMethodAttribute.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 / SoapRpcMethodAttribute.cs / 1305376 / SoapRpcMethodAttribute.cs

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

namespace System.Web.Services.Protocols { 
    using System; 
    using System.Web.Services.Description;
    using System.Runtime.InteropServices; 

    /// 
    /// 
    ///    [To be supplied.] 
    /// 
    [AttributeUsage(AttributeTargets.Method)] 
    public sealed class SoapRpcMethodAttribute : System.Attribute { 
        string action;
        string requestName; 
        string responseName;
        string requestNamespace;
        string responseNamespace;
        bool oneWay; 
        string binding;
        SoapBindingUse use = SoapBindingUse.Encoded; 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public SoapRpcMethodAttribute() {
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public SoapRpcMethodAttribute(string action) {
            this.action = action;
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string Action { 
            get { return action; }
            set { action = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string Binding { 
            get { return binding == null ? string.Empty : binding; }
            set { binding = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public bool OneWay { 
            get { return oneWay; }
            set { oneWay = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string RequestNamespace { 
            get { return requestNamespace; }
            set { requestNamespace = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string ResponseNamespace { 
            get { return responseNamespace; }
            set { responseNamespace = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string RequestElementName { 
            get { return requestName == null ? string.Empty : requestName; }
            set { requestName = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public string ResponseElementName { 
            get { return responseName == null ? string.Empty : responseName; }
            set { responseName = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        [ComVisible(false)] 
        public SoapBindingUse Use {
            get { return use; }
            set { use = value; }
        } 
    }
 
} 

// 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