2 // Microsoft.Web.Services.Addressing.PortType.cs
4 // Author: Todd Berman <tberman@gentoo.org>
6 // (C) 2003 Todd Berman
10 using Microsoft.Web.Services.Xml;
12 namespace Microsoft.Web.Services.Addressing
15 public class PortType : AttributedQName, IXmlElement
18 public PortType (XmlElement element) : base ()
23 public PortType (QualifiedName qname) : base (qname)
27 public XmlElement GetXml (XmlDocument document)
29 if(document == null) {
30 throw new ArgumentNullException ("document");
32 XmlElement element = document.CreateElement("wsa",
34 "http://schemas.xmlsoap.org/ws/2003/03/addressing");
35 GetXmlQName (document, element);
40 public void LoadXml (XmlElement element)
43 throw new ArgumentNullException ("element");
45 if(element.LocalName != "PortType" || element.NamespaceURI != "http://schemas.xmlsoap.org/ws/2003/03/addressing") {
46 throw new ArgumentException ("Invalid Element Supplied");
48 LoadXmlQName (element);