2 // Microsoft.Web.Services.Routing.Path.cs
4 // Name: Duncan Mak (duncan@ximian.com)
6 // Copyright (C) Ximian, Inc. 2003
10 using System
.Globalization
;
11 using System
.Web
.Services
.Protocols
;
14 namespace Microsoft
.Web
.Services
.Routing
{
17 public class Path
: SoapHeader
, ICloneable
22 private ViaCollection _forward
;
23 private ViaCollection _reverse
;
24 private RoutingFault _fault
;
30 Actor
= "http://schemas.xmlsoap.org/soap/actor/next";
31 MustUnderstand
= true;
36 internal Path (XmlElement element
)
38 public Path (XmlElement element
) : base ()
42 this.element
= element
;
49 public void CheckValid ()
51 if(Actor
.Length
== 0 || Actor
!= "http://schemas.xmlsoap.org/soap/actor/next")
53 throw new RoutingFormatException ("Bad Actor value");
58 public XmlElement
GetXml (XmlDocument document
)
61 throw new ArgumentNullException (
62 Locale
.GetText ("Argument is null."));
63 throw new NotImplementedException ();
67 public void LoadXml (XmlElement element
)
70 throw new ArgumentNullException (
71 Locale
.GetText ("Argument is null."));
72 throw new NotImplementedException ();
77 public object Clone ()
79 public virtual object Clone ()
83 throw new NotImplementedException ();
85 Path newPath
= new Path ();
87 if(_forward
!= null) {
88 newPath
._forward
= _forward
.Clone () as ViaCollection
;
91 if(_reverse
!= null) {
92 newPath
._reverse
= _reverse
.Clone () as ViaCollection
;
95 newPath
._fault
= _fault
;
103 public string Action
{
104 get { throw new NotSupportedException (); }
105 set { throw new NotSupportedException (); }
109 public string Action
{
115 public RoutingFault Fault
{
116 get { return _fault; }
117 set { _fault = value; }
123 get { throw new InvalidOperationException (); }
124 set { throw new InvalidOperationException (); }
134 public ViaCollection Fwd
{
136 if(_forward
== null) {
137 _forward
= new ViaCollection ();
144 [Obsolete("Use SoapContext.MessageId")]
146 get { throw new InvalidOperationException (); }
156 [Obsolete("Use SoapContext.RelatesTo")]
157 public Uri RelatesTo
{
158 get { throw new InvalidOperationException (); }
159 set { throw new InvalidOperationException (); }
163 public Uri RelatesTo
{
169 public ViaCollection Rev
{
171 if(_reverse
== null) {
172 _reverse
= new ViaCollection ();
176 set { _reverse = value; }
180 [Obsolete("Use SoapContext.To")]
182 get { throw new InvalidOperationException (); }