2 // System.Web.Services.Description.SoapBinding.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.ComponentModel;
\r
11 using System.Web.Services.Configuration;
\r
12 using System.Xml.Serialization;
\r
14 namespace System.Web.Services.Description {
\r
15 [XmlFormatExtensionPrefix ("soap", "http://schemas.xmlsoap.org/wsdl/soap/")]
\r
16 [XmlFormatExtension ("binding", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (Binding))]
\r
17 // FIXME: this won't compile!
\r
18 // [XmlFormatExtensionPrefix ("soapenc", "http://schemas.xmlsoap.org/soap/encoding/")]
\r
19 public sealed class SoapBinding : ServiceDescriptionFormatExtension {
\r
23 public const string HttpTransport = "http://schemas.xmlsoap.org/soap/http/";
\r
24 public const string Namespace = "http://schemas.xmlsoap.org/wsdl/soap/";
\r
26 SoapBindingStyle style;
\r
29 #endregion // Fields
\r
31 #region Constructors
\r
33 public SoapBinding ()
\r
35 style = SoapBindingStyle.Document;
\r
36 transport = String.Empty;
\r
39 #endregion // Constructors
\r
43 // LAMESPEC: .NET says that the default value is SoapBindingStyle.Document but
\r
44 // reflection shows this attribute is SoapBindingStyle.Default
\r
46 [DefaultValue (SoapBindingStyle.Default)]
\r
47 [XmlAttribute ("style")]
\r
48 public SoapBindingStyle Style {
\r
49 get { return style; }
\r
50 set { style = value; }
\r
53 [XmlAttribute ("transport")]
\r
54 public string Transport {
\r
55 get { return transport; }
\r
56 set { transport = value; }
\r
59 #endregion // Properties
\r