| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // System.Web.Services.Description.SoapHeaderBinding.cs
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- //
- using System.ComponentModel;
- using System.Web.Services;
- using System.Web.Services.Configuration;
- using System.Xml;
- using System.Xml.Serialization;
- namespace System.Web.Services.Description {
- [XmlFormatExtension ("header", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (InputBinding), typeof (OutputBinding))]
- public sealed class SoapHeaderBinding : ServiceDescriptionFormatExtension {
- #region Fields
- string encoding;
- bool mapToProperty;
- XmlQualifiedName message;
- string ns;
- string part;
- SoapBindingUse use;
- #endregion // Fields
- #region Constructors
-
- [MonoTODO]
- public SoapHeaderBinding ()
- {
- encoding = String.Empty;
- mapToProperty = false; // FIXME: is this right?
- message = XmlQualifiedName.Empty;
- ns = String.Empty;
- part = String.Empty;
- use = SoapBindingUse.Default;
- }
-
- #endregion // Constructors
- #region Properties
- [DefaultValue ("")]
- [XmlAttribute ("encodingStyle")]
- public string Encoding {
- get { return encoding; }
- set { encoding = value; }
- }
- [XmlIgnore]
- public bool MapToProperty {
- get { return mapToProperty; }
- set { mapToProperty = value; }
- }
- [XmlAttribute ("message")]
- public XmlQualifiedName Message {
- get { return message; }
- set { message = value; }
- }
- [DefaultValue ("")]
- [XmlAttribute ("namespace")]
- public string Namespace {
- get { return ns; }
- set { ns = value; }
- }
- [XmlAttribute ("part", DataType = "NMTOKEN")]
- public string Part {
- get { return part; }
- set { part = value; }
- }
- [DefaultValue (SoapBindingUse.Default)]
- [XmlAttribute ("use")]
- public SoapBindingUse Use {
- get { return use; }
- set { use = value; }
- }
- #endregion // Properties
- }
- }
|