2006-11-16 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Thu, 16 Nov 2006 05:49:19 +0000 (05:49 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Thu, 16 Nov 2006 05:49:19 +0000 (05:49 -0000)
* HttpServerProtocol.cs : removed old code.
* SoapServerProtocol.cs, ServerProtocol.cs : removed as well, and
  added up-to-date ones.
* SoapHeaderHandling.cs, SoapHeaderMapping.cs,
  ServerProtocolFactory.cs, SoapServerType.cs,
  SoapServerProtocolFactory.cs, ServerType.cs,
  SoapServerProtocol.cs, ServerProtocol.cs,
  SoapServerMethod.cs :
  Added stubs for 2.0 server protocol model. For now I don't spend
  time on these ones but rather fill more important bits like
  SOAP 1.2 support.

* System.Web.Services.dll.sources : added/removed/replaced 2.0 server
  protocol classes in S.W.S.Protocols.

svn path=/trunk/mcs/; revision=67973

13 files changed:
mcs/class/System.Web.Services/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpServerProtocol.cs [deleted file]
mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs
mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocolFactory.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderHandling.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderMapping.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMethod.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocol.cs
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocolFactory.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerType.cs [new file with mode: 0644]
mcs/class/System.Web.Services/System.Web.Services.dll.sources

index 6ff5244cc3d284359b262003b1479bf3de533a6c..837b346ac12acbc484aea02053bbe4de83e0c518 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * System.Web.Services.dll.sources : added/removed/replaced 2.0 server
+         protocol classes in S.W.S.Protocols.
+
 2006-11-15  Atsushi Enomoto  <atsushi@ximian.com>
 
        * System.Web.Services_test.dll.sources : added WebReferenceTest.cs.
index d82d5e8a346f40d042ecfce1f7266afb4e9fc08f..cbf4bf24b23321575682c4c8237db85a27856c4d 100644 (file)
@@ -1,3 +1,17 @@
+2006-11-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpServerProtocol.cs : removed old code.
+       * SoapServerProtocol.cs, ServerProtocol.cs : removed as well, and
+         added up-to-date ones.
+       * SoapHeaderHandling.cs, SoapHeaderMapping.cs,
+         ServerProtocolFactory.cs, SoapServerType.cs,
+         SoapServerProtocolFactory.cs, ServerType.cs,
+         SoapServerProtocol.cs, ServerProtocol.cs,
+         SoapServerMethod.cs :
+         Added stubs for 2.0 server protocol model. For now I don't spend
+         time on these ones but rather fill more important bits like
+         SOAP 1.2 support.
+
 2006-11-15  Atsushi Enomoto  <atsushi@ximian.com>
 
        * SoapHeaderException.cs, SoapException.cs, SoapFaultSubcode.cs,
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpServerProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpServerProtocol.cs
deleted file mode 100644 (file)
index 92e9297..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-// \r
-// System.Web.Services.Protocols.HttpServerProtocol.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-\r
-using System.IO;\r
-using System.Web.Services;\r
-\r
-namespace System.Web.Services.Protocols {\r
-       [MonoTODO ("Figure out what this class does.")]\r
-       internal abstract class HttpServerProtocol : ServerProtocol {\r
-\r
-               #region Constructors\r
-\r
-               [MonoTODO ("Is the bool parameter the one way?")]\r
-               protected HttpServerProtocol (bool isOneWay)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               [MonoTODO]\r
-               public override bool IsOneWay {\r
-                       get { throw new NotImplementedException (); }\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override LogicalMethodInfo MethodInfo {\r
-                       get { throw new NotImplementedException (); }\r
-               }\r
-\r
-               #endregion // Properties\r
-\r
-               #region Methods\r
-\r
-               [MonoTODO]\r
-               public static bool AreUrlParametersSupported (LogicalMethodInfo methodInfo)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override bool Initialize () \r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override object[] ReadParameters ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-                \r
-               [MonoTODO]\r
-               public override bool WriteException (Exception e, Stream outputStream)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-               [MonoTODO]\r
-                public override void WriteReturns (object[] returnValues, Stream outputStream)\r
-                {\r
-                       //xmlReturnWriter.Write (Response, outputStream, returnValue);\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-               #endregion // Methods\r
-       }\r
-}\r
index 8bc4e1e3f64a7f8b1250172697aed17662e33f82..70c895ab52a54a6cec476614f59166600d1d1493 100644 (file)
@@ -1,11 +1,11 @@
-// \r
-// System.Web.Services.Protocols.ServerProtocol.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+// 
+// ServerProtocol.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System.IO;\r
-using System.Web;\r
-using System.Web.Services;\r
-\r
-namespace System.Web.Services.Protocols {\r
-       [MonoTODO ("Figure out what this class does.")]\r
-       internal abstract class ServerProtocol {\r
-\r
-               HttpContext _context;\r
-\r
-               #region Constructors\r
-\r
-               internal ServerProtocol (HttpContext context)\r
-               {\r
-                       _context = context;\r
-               }\r
-\r
-               protected ServerProtocol ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-\r
-               #region Properties\r
-\r
-               public HttpContext Context {\r
-                       get { return _context; }\r
-               }\r
-\r
-               public abstract bool IsOneWay {\r
-                       get;\r
-               }\r
-\r
-               public abstract LogicalMethodInfo MethodInfo {\r
-                       get;\r
-               }\r
-\r
-               [MonoTODO]\r
-               public virtual Exception OnewayInitException {\r
-                       get { throw new NotImplementedException (); }\r
-               }\r
-\r
-               public HttpRequest Request {\r
-                       get { return _context.Request; }\r
-               }\r
-\r
-               public HttpResponse Response {\r
-                       get { return _context.Response; }\r
-               }\r
-\r
-               #endregion\r
-\r
-               #region Methods\r
-\r
-               [MonoTODO]\r
-               protected void AddToCache (Type t1, Type t2, object o)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public virtual void CreateServerInstance ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public virtual void DisposeServerInstance ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public string GenerateFaultString (Exception exception)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               protected object GetFromCache (Type t1, Type t2)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               public abstract bool Initialize ();\r
-\r
-               public abstract object[] ReadParameters ();\r
-\r
-               [MonoTODO]\r
-               public virtual bool WriteException (Exception e, Stream outputStream)\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public void WriteOneWayResponse ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               public abstract void WriteReturns (object[] returnValues, Stream outputStream);\r
-\r
-               #endregion\r
-       }\r
+
+#if NET_2_0
+
+namespace System.Web.Services.Protocols
+{
+       public abstract class ServerProtocol
+       {
+               protected ServerProtocol ()
+               {
+               }
+
+               [MonoTODO]
+               protected HttpContext Context {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               protected HttpRequest Request {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               protected HttpResponse Response {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               protected virtual object Target {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               protected void AddToCache (Type protocolType, Type serverType, object value)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected object GetFromCache (Type protocolType, Type serverType)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
 }
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocolFactory.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocolFactory.cs
new file mode 100644 (file)
index 0000000..38c63ab
--- /dev/null
@@ -0,0 +1,45 @@
+// 
+// ServerProtocolFactory.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Web.Services.Protocols
+{
+       public abstract class ServerProtocolFactory
+       {
+               protected ServerProtocolFactory ()
+               {
+               }
+
+               protected abstract ServerProtocol CreateIfRequestCompatible (HttpRequest request);
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs
new file mode 100644 (file)
index 0000000..9f33471
--- /dev/null
@@ -0,0 +1,43 @@
+// 
+// ServerType.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Web.Services.Protocols
+{
+       public class ServerType
+       {
+               public ServerType (Type type)
+               {
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderHandling.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderHandling.cs
new file mode 100644 (file)
index 0000000..c0450fe
--- /dev/null
@@ -0,0 +1,117 @@
+// 
+// SoapHeaderHandling.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Reflection;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace System.Web.Services.Protocols
+{
+       public sealed class SoapHeaderHandling
+       {
+               // static members
+
+               [MonoTODO]
+               public static void EnsureHeadersUnderstood (SoapHeaderCollection headers)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void GetHeaderMembers (
+                       SoapHeaderCollection headers,
+                       object target,
+                       SoapHeaderMapping [] mappings,
+                       SoapHeaderDirection direction,
+                       bool client)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void SetHeaderMembers (
+                       SoapHeaderCollection headers,
+                       object target,
+                       SoapHeaderMapping [] mappings,
+                       SoapHeaderDirection direction,
+                       bool client)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void WriteHeaders (
+                       XmlWriter writer,
+                       XmlSerializer serializer,
+                       SoapHeaderCollection headers,
+                       SoapHeaderMapping [] mappings,
+                       SoapHeaderDirection direction,
+                       bool isEncoded,
+                       string defaultNS,
+                       bool serviceDefaultIsEncoded,
+                       string envelopeNS)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public static void WriteUnknownHeaders (
+                       XmlWriter writer,
+                       SoapHeaderCollection headers,
+                       string envelopeNS)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               // instance members
+
+               public SoapHeaderHandling ()
+               {
+               }
+
+               [MonoTODO]
+               public string ReadHeaders (
+                       XmlReader reader,
+                       XmlSerializer serializer,
+                       SoapHeaderCollection headers,
+                       SoapHeaderMapping [] mappings,
+                       SoapHeaderDirection direction,
+                       string envelopeNS,
+                       string encodingStyle,
+                       bool checkRequiredHeaders)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderMapping.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderMapping.cs
new file mode 100644 (file)
index 0000000..c169eec
--- /dev/null
@@ -0,0 +1,70 @@
+// 
+// SoapHeaderMapping.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Reflection;
+
+namespace System.Web.Services.Protocols
+{
+       public sealed class SoapHeaderMapping
+       {
+               internal SoapHeaderMapping ()
+               {
+               }
+
+               [MonoTODO]
+               public bool Custom {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public SoapHeaderDirection Direction {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public Type HeaderType {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public MemberInfo MemberInfo {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public bool Repeats {
+                       get { throw new NotImplementedException (); }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMethod.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMethod.cs
new file mode 100644 (file)
index 0000000..50e6bf0
--- /dev/null
@@ -0,0 +1,119 @@
+// 
+// SoapServerMethod.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Web.Services;
+using System.Web.Services.Description;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace System.Web.Services.Protocols
+{
+       public sealed class SoapServerMethod
+       {
+               public SoapServerMethod ()
+               {
+               }
+
+               [MonoTODO]
+               public SoapServerMethod (Type serverType, LogicalMethodInfo methodInfo)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string Action {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public SoapBindingUse BindingUse { 
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public SoapHeaderMapping [] InHeaderMappings {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public XmlSerializer InHeaderSerializer {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public LogicalMethodInfo MethodInfo {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public bool OneWay {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public SoapHeaderMapping [] OutHeaderMappings {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public XmlSerializer OutHeaderSerializer {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public XmlSerializer ParameterSerializer {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public SoapParameterStyle ParameterStyle {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public XmlSerializer ReturnSerializer {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public bool Rpc {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public WsiProfiles WsiClaims {
+                       get { throw new NotImplementedException (); }
+               }
+       }
+}
+
+#endif
index 866778f6be1f54f2b60c1ffa36f4fa474428e240..952ad5987ee442916466b2c670b7f5af7d2f1f2d 100644 (file)
@@ -1,11 +1,11 @@
-// \r
-// System.Web.Services.Protocols.SoapServerProtocol.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+// 
+// SoapServerProtocol.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System.IO;\r
-using System.Web.Services;\r
-\r
-namespace System.Web.Services.Protocols {\r
-       [MonoTODO ("Figure out what this class does.")]\r
-       internal class SoapServerProtocol : ServerProtocol {\r
-\r
-               #region Fields\r
-\r
-               bool isOneWay;\r
-\r
-               #endregion // Fields\r
-\r
-               #region Properties\r
-\r
-               public override bool IsOneWay {\r
-                       get { return isOneWay; }\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override LogicalMethodInfo MethodInfo {\r
-                       get { throw new NotImplementedException (); }\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override Exception OnewayInitException {\r
-                       get { throw new NotImplementedException (); }\r
-               }\r
-\r
-               #endregion // Properties\r
-\r
-               #region Methods\r
-\r
-               [MonoTODO]\r
-               public override bool Initialize ()\r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-\r
-               [MonoTODO]\r
-               public override object[] ReadParameters ()\r
-               {\r
-                               throw new NotImplementedException ();\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override bool WriteException (Exception e, Stream outputStream)\r
-               {\r
-                               throw new NotImplementedException ();\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override void WriteReturns (object[] returnValues, Stream outputStream)\r
-               {\r
-                               throw new NotImplementedException ();\r
-               }\r
-\r
-               #endregion\r
-       }\r
+
+#if NET_2_0
+
+using System.Web.Services.Configuration;
+using System.Xml;
+
+namespace System.Web.Services.Protocols
+{
+       public class SoapServerProtocol : ServerProtocol
+       {
+               protected SoapServerProtocol ()
+               {
+               }
+
+               [MonoTODO]
+               protected virtual XmlReader GetReaderForMessage (
+                       SoapServerMessage message, int bufferSize)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual XmlWriter GetWriterForMessage (
+                       SoapServerMessage message, int bufferSize)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual SoapExtension [] ModifyInitializedExtensions (
+                       PriorityGroup group, SoapExtension [] extensions)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual SoapServerMethod RouteRequest (SoapServerMessage message)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
 }
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocolFactory.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocolFactory.cs
new file mode 100644 (file)
index 0000000..31e388b
--- /dev/null
@@ -0,0 +1,51 @@
+// 
+// SoapServerProtocolFactory.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Web.Services.Configuration;
+
+namespace System.Web.Services.Protocols
+{
+       public class SoapServerProtocolFactory : ServerProtocolFactory
+       {
+               public SoapServerProtocolFactory ()
+               {
+               }
+
+               [MonoTODO]
+               protected override ServerProtocol CreateIfRequestCompatible (HttpRequest request)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerType.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerType.cs
new file mode 100644 (file)
index 0000000..cffe31f
--- /dev/null
@@ -0,0 +1,74 @@
+// 
+// SoapServerType.cs
+//
+// Author:
+//   Atsushi Enomoto  <atsushi@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc.
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Web.Services.Configuration;
+
+namespace System.Web.Services.Protocols
+{
+       public sealed class SoapServerType : ServerType
+       {
+               [MonoTODO]
+               public SoapServerType (Type type, WebServiceProtocols protocolsSupported)
+                       : base (type)
+               {
+               }
+
+               [MonoTODO]
+               public SoapServerMethod GetDuplicateMethod (object key)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public SoapServerMethod GetMethod (object key)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public bool ServiceDefaultIsEncoded {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public string ServiceNamespace {
+                       get { throw new NotImplementedException (); }
+               }
+
+               [MonoTODO]
+               public bool ServiceRoutingOnSoapAction {
+                       get { throw new NotImplementedException (); }
+               }
+       }
+}
+
+#endif
index d19ae7a556c11817ab646213723e88746b64fcfd..8019ef030ca3367ed6d650b76d9639de5805a701 100644 (file)
@@ -132,7 +132,6 @@ System.Web.Services.Protocols/HttpGetTypeStubInfo.cs
 System.Web.Services.Protocols/HttpMethodAttribute.cs
 System.Web.Services.Protocols/HttpPostClientProtocol.cs
 System.Web.Services.Protocols/HttpPostTypeStubInfo.cs
-System.Web.Services.Protocols/HttpServerProtocol.cs
 System.Web.Services.Protocols/HttpSimpleClientProtocol.cs
 System.Web.Services.Protocols/HttpSimpleTypeStubInfo.cs
 System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs
@@ -152,6 +151,8 @@ System.Web.Services.Protocols/NopReturnReader.cs
 System.Web.Services.Protocols/PatternMatcher.cs
 System.Web.Services.Protocols/Soap12FaultCodes.cs
 System.Web.Services.Protocols/ServerProtocol.cs
+System.Web.Services.Protocols/ServerProtocolFactory.cs
+System.Web.Services.Protocols/ServerType.cs
 System.Web.Services.Protocols/SoapClientMessage.cs
 System.Web.Services.Protocols/SoapClientMethod.cs
 System.Web.Services.Protocols/SoapDocumentationHandler.cs
@@ -166,6 +167,8 @@ System.Web.Services.Protocols/SoapHeaderAttribute.cs
 System.Web.Services.Protocols/SoapHeaderCollection.cs
 System.Web.Services.Protocols/SoapHeaderDirection.cs
 System.Web.Services.Protocols/SoapHeaderException.cs
+System.Web.Services.Protocols/SoapHeaderHandling.cs
+System.Web.Services.Protocols/SoapHeaderMapping.cs
 System.Web.Services.Protocols/SoapHttpClientProtocol.cs
 System.Web.Services.Protocols/SoapMessage.cs
 System.Web.Services.Protocols/SoapMessageStage.cs
@@ -174,8 +177,11 @@ System.Web.Services.Protocols/SoapProtocolVersion.cs
 System.Web.Services.Protocols/SoapRpcMethodAttribute.cs
 System.Web.Services.Protocols/SoapRpcServiceAttribute.cs
 System.Web.Services.Protocols/SoapServerMessage.cs
+System.Web.Services.Protocols/SoapServerMethod.cs
 System.Web.Services.Protocols/SoapServerProtocol.cs
+System.Web.Services.Protocols/SoapServerProtocolFactory.cs
 System.Web.Services.Protocols/SoapServiceRoutingStyle.cs
+System.Web.Services.Protocols/SoapServerType.cs
 System.Web.Services.Protocols/SoapUnknownHeader.cs
 System.Web.Services.Protocols/TextReturnReader.cs
 System.Web.Services.Protocols/TypeStubManager.cs