2 // Microsoft.Web.Services.Addressing.Action.cs
4 // Author: Todd Berman <tberman@gentoo.org>
6 // (C) 2003 Todd Berman
11 using Microsoft.Web.Services.Xml;
13 namespace Microsoft.Web.Services.Addressing
16 public class Action : AttributedUriString, IXmlElement
20 public Action (string uri) : base (uri)
24 public Action (XmlElement element) : base ()
29 public static implicit operator Action(string obj)
32 return new Action (obj);
36 public static implicit operator string(Action obj)
46 public XmlElement GetXml (XmlDocument document)
48 if(document == null) {
49 throw new ArgumentNullException ("document");
52 XmlElement element = document.CreateElement ("wsa",
54 "http://schemas.xmlsoap.org/ws/2003/03/addressing");
56 GetXmlUri (document, element);
62 public void LoadXml (XmlElement element)
65 throw new ArgumentNullException ("element");
68 if(element.LocalName != "Action" || element.NamespaceURI != "http://schemas.xmlsoap.org/ws/2003/03/addressing") {
69 throw new ArgumentException ("Invalid Element Supplied");