using System.Xml.Schema;\r
using System.Xml.Serialization;\r
\r
-namespace System.Web.Services.Description {\r
+namespace System.Web.Services.Description\r
+{\r
[XmlFormatExtensionPoint ("Extensions")]\r
[XmlRoot ("definitions", Namespace = "http://schemas.xmlsoap.org/wsdl/")]\r
- public sealed class ServiceDescription : DocumentableItem {\r
-\r
+ public sealed class ServiceDescription :\r
+#if NET_2_0\r
+ NamedItem\r
+#else\r
+ DocumentableItem \r
+#endif\r
+ {\r
#region Fields\r
\r
public const string Namespace = "http://schemas.xmlsoap.org/wsdl/";\r
ServiceDescriptionFormatExtensionCollection extensions;\r
ImportCollection imports;\r
MessageCollection messages;\r
+#if !NET_2_0\r
string name;\r
+#endif\r
PortTypeCollection portTypes;\r
string retrievalUrl;\r
ServiceDescriptionCollection serviceDescriptions;\r
extensions = new ServiceDescriptionFormatExtensionCollection (this);\r
imports = new ImportCollection (this);\r
messages = new MessageCollection (this);\r
+#if !NET_2_0\r
name = String.Empty; \r
+#endif\r
portTypes = new PortTypeCollection (this);\r
\r
serviceDescriptions = null;\r
get { return extensions; }\r
}\r
\r
+#if !NET_2_0\r
[XmlAttribute ("name", DataType = "NMTOKEN")] \r
public string Name {\r
get { return name; }\r
set { name = value; }\r
}\r
+#endif\r
\r
[XmlIgnore] \r
public string RetrievalUrl {\r