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 { } }