TARGET_J2EE/JVM fixes
[mono.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Routing / RoutingOutputFilter.cs
1 //
2 // SecurityOutputFilter.cs: Security SOAP Output Filter
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using System;
11
12 namespace Microsoft.Web.Services.Routing {
13
14         public class RoutingOutputFilter : SoapOutputFilter {
15
16                 public RoutingOutputFilter () {}
17
18                 [MonoTODO]
19                 public override void ProcessMessage (SoapEnvelope envelope) 
20                 {
21                         if (envelope == null)
22                                 throw new ArgumentNullException ("envelope");
23                         // TODO
24 #if WSE2
25 //Quick quick quick Hack for some Addressing stuff
26                         if(envelope.Context.To != null) {       
27                                 envelope.CreateHeader ().AppendChild (envelope.Context.To.GetXml (envelope));
28                         }
29                         if(envelope.Context.Action != null) {
30                                 envelope.CreateHeader ().AppendChild (envelope.Context.Action.GetXml (envelope));
31                         }
32                         if(envelope.Context.ReplyTo != null) {
33                                 envelope.CreateHeader ().AppendChild (envelope.Context.ReplyTo.GetXml (envelope));
34                         }
35                 
36 #endif
37                 }
38         }
39 }