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

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

namespace System.Web.Services.Description { 
    using System.Xml; 
    using System.Xml.Serialization;
    using System.ComponentModel; 
    using System.Text;
    using System.Web.Services.Configuration;
    using System.Web.Services.Protocols;
 
    /// 
    [XmlFormatExtension("binding", Soap12Binding.Namespace, typeof(Binding))] 
    [XmlFormatExtensionPrefix("soap12", Soap12Binding.Namespace)] 
    public sealed class Soap12Binding : SoapBinding {
 
        /// 
        public new const string Namespace="http://schemas.xmlsoap.org/wsdl/soap12/";
        /// 
        public new const string HttpTransport = "http://schemas.xmlsoap.org/soap/http"; 
    }
 
    ///  
    [XmlFormatExtension("operation", Soap12Binding.Namespace, typeof(OperationBinding))]
    public sealed class Soap12OperationBinding : SoapOperationBinding { 
        bool soapActionRequired;
        Soap12OperationBinding duplicateBySoapAction;
        Soap12OperationBinding duplicateByRequestElement;
        SoapReflectedMethod method; 

        ///  
        [XmlAttribute("soapActionRequired"), DefaultValue(false)] 
        public bool SoapActionRequired {
            get { return soapActionRequired; } 
            set { soapActionRequired = value; }
        }

        // these are used by Soap12ProtocolReflector in WSDL generation 
        internal SoapReflectedMethod Method {
            get { return method; } 
            set { method = value; } 
        }
 
        internal Soap12OperationBinding DuplicateBySoapAction {
            get { return duplicateBySoapAction; }
            set { duplicateBySoapAction = value; }
        } 

        internal Soap12OperationBinding DuplicateByRequestElement { 
            get { return duplicateByRequestElement; } 
            set { duplicateByRequestElement = value; }
        } 
    }

    /// 
    [XmlFormatExtension("body", Soap12Binding.Namespace, typeof(InputBinding), typeof(OutputBinding), typeof(MimePart))] 
    public sealed class Soap12BodyBinding : SoapBodyBinding {
    } 
 
    /// 
    [XmlFormatExtension("fault", Soap12Binding.Namespace, typeof(FaultBinding))] 
    public sealed class Soap12FaultBinding : SoapFaultBinding {
    }

    ///  
    [XmlFormatExtension("header", Soap12Binding.Namespace, typeof(InputBinding), typeof(OutputBinding))]
    public sealed class Soap12HeaderBinding : SoapHeaderBinding { 
    } 

    ///  
    [XmlFormatExtension("address", Soap12Binding.Namespace, typeof(Port))]
    public sealed class Soap12AddressBinding : SoapAddressBinding {
    }
} 

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