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

                            namespace System.Web.Services.Description { 
    using System.Xml.Serialization;
    using System.Web.Services.Configuration;

    ///  
    [XmlFormatExtension("address", HttpBinding.Namespace, typeof(Port))]
    public sealed class HttpAddressBinding : ServiceDescriptionFormatExtension { 
        string location; 

        ///  
        [XmlAttribute("location")]
        public string Location {
            get { return location == null ? string.Empty : location; }
            set { location = value; } 
        }
    } 
 
    /// 
    [XmlFormatExtension("binding", HttpBinding.Namespace, typeof(Binding))] 
    [XmlFormatExtensionPrefix("http", HttpBinding.Namespace)]
    public sealed class HttpBinding : ServiceDescriptionFormatExtension {
        string verb;
 
        /// 
        public const string Namespace="http://schemas.xmlsoap.org/wsdl/http/"; 
 
        /// 
        [XmlAttribute("verb")] 
        public string Verb {
            get { return verb; }
            set { verb = value; }
        } 
    }
 
    ///  
    [XmlFormatExtension("operation", HttpBinding.Namespace, typeof(OperationBinding))]
    public sealed class HttpOperationBinding : ServiceDescriptionFormatExtension { 
        string location;

        /// 
        [XmlAttribute("location")] 
        public string Location {
            get { return location == null ? string.Empty : location; } 
            set { location = value; } 
        }
    } 

    /// 
    [XmlFormatExtension("urlEncoded", HttpBinding.Namespace, typeof(InputBinding))]
    public sealed class HttpUrlEncodedBinding : ServiceDescriptionFormatExtension { 
    }
 
    ///  
    [XmlFormatExtension("urlReplacement", HttpBinding.Namespace, typeof(InputBinding))]
    public sealed class HttpUrlReplacementBinding : ServiceDescriptionFormatExtension { 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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