Author: atsushi
Date: 2008-02-07 11:28:29 -0500 (Thu, 07 Feb 2008)
New Revision: 95152

Added:
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/ChangeLog
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/QueryStringConverter.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebGetAttribute.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebInvokeAttribute.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebServiceHost.cs
Modified:
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/ChangeLog
Log:
2008-02-07  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * WebServiceHost.cs, WebChannelFactory.cs,
          WebInvokeAttribute.cs, WebGetAttribute.cs : mostly stubs.

        * JsonQueryStringConverter.cs, QueryStringConverter.cs,
          WebHttpDispatchOperationSelector.cs : mostly stubs.

        * WebHttpBehavior.cs : stub.



Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/ChangeLog
 2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/ChangeLog
 2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,3 @@
+2008-02-07  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * WebHttpBehavior.cs : stub.

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs
        2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs
        2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,108 @@
+//
+// WebHttpBehavior.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Dispatcher;
+
+namespace System.ServiceModel.Description
+{
+       public class WebHttpBehavior : IEndpointBehavior
+       {
+               public WebHttpBehavior ()
+               {
+               }
+
+               [MonoTODO]
+               public virtual void AddBindingParameters (ServiceEndpoint 
endpoint, BindingParameterCollection bindingParameters)
+               {
+               }
+
+               [MonoTODO]
+               protected virtual void AddClientErrorInspector (ServiceEndpoint 
endpoint, ClientRuntime clientRuntime)
+               {
+               }
+
+               [MonoTODO]
+               protected virtual void AddServerErrorHandlers (ServiceEndpoint 
endpoint, EndpointDispatcher endpointDispatcher)
+               {
+               }
+
+               [MonoTODO]
+               public virtual void ApplyClientBehavior (ServiceEndpoint 
endpoint, ClientRuntime clientRuntime)
+               {
+               }
+
+               [MonoTODO]
+               public virtual void ApplyDispatchBehavior (ServiceEndpoint 
endpoint, EndpointDispatcher endpointDispatcher)
+               {
+               }
+
+               [MonoTODO]
+               protected virtual WebHttpDispatchOperationSelector 
GetOperationSelector (ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual QueryStringConverter GetQueryStringConverter 
(OperationDescription operationDescription)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual IClientMessageFormatter 
GetReplyClientFormatter (OperationDescription operationDescription, 
ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual IDispatchMessageFormatter 
GetReplyDispatchFormatter (OperationDescription operationDescription, 
ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual IClientMessageFormatter 
GetRequestClientFormatter (OperationDescription operationDescription, 
ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               protected virtual IDispatchMessageFormatter 
GetRequestDispatchFormatter (OperationDescription operationDescription, 
ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual void Validate (ServiceEndpoint endpoint)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog
  2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog
  2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,4 @@
+2008-02-07  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * JsonQueryStringConverter.cs, QueryStringConverter.cs,
+         WebHttpDispatchOperationSelector.cs : mostly stubs.

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
        2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
        2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,54 @@
+//
+// JsonQueryStringConverter.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Dispatcher
+{
+       public class JsonQueryStringConverter : QueryStringConverter
+       {
+               [MonoTODO]
+               public override bool CanConvert (Type type)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override object ConvertStringToValue (string parameter, 
Type parameterType)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override string ConvertValueToString (object parameter, 
Type parameterType)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/QueryStringConverter.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/QueryStringConverter.cs
    2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/QueryStringConverter.cs
    2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,68 @@
+//
+// QueryStringConverter.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ComponentModel;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Dispatcher
+{
+       public class QueryStringConverter
+       {
+               // "Service Operation Parameters and URLs"
+               // http://msdn2.microsoft.com/en-us/library/bb412172.aspx
+               public virtual bool CanConvert (Type type)
+               {
+                       switch (Type.GetTypeCode (type)) {
+                       case TypeCode.DBNull:
+                       case TypeCode.Empty:
+                               return false;
+                       case TypeCode.Object:
+                               if (type == typeof (Guid))
+                                       return true;
+                               if (type.GetCustomAttributes (typeof 
(TypeConverterAttribute), true).Length > 0)
+                                       return true;
+                               return false;
+                       default:
+                               return true;
+                       }
+               }
+
+               [MonoTODO]
+               public virtual object ConvertStringToValue (string parameter, 
Type parameterType)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual string ConvertValueToString (object parameter, 
Type parameterType)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/QueryStringConverter.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
        2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
        2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,37 @@
+//
+// WebHttpDispatchOperationSelector.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Dispatcher
+{
+       public class WebHttpDispatchOperationSelector
+       {
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/ChangeLog
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/ChangeLog 
2008-02-07 16:21:59 UTC (rev 95151)
+++ trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/ChangeLog 
2008-02-07 16:28:29 UTC (rev 95152)
@@ -1,3 +1,8 @@
+2008-02-07  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * WebServiceHost.cs, WebChannelFactory.cs,
+         WebInvokeAttribute.cs, WebGetAttribute.cs : mostly stubs.
+
 2008-02-06  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * WebMessageBodyStyle.cs, WebMessageFormat.cs : new enums.

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs
      2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs
      2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,77 @@
+//
+// WebChannelFactory.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+
+// This class does:
+// - manual addressing support (with ChannelFactory, client will fail with
+//   InvalidOperationException that claims missing manual addressing) in every
+//   messages.
+
+namespace System.ServiceModel.Web
+{
+       public class WebChannelFactory<TChannel> : ChannelFactory<TChannel>
+       {
+               [MonoTODO]
+               public WebChannelFactory ()
+                       : base ()
+               {
+               }
+
+               [MonoTODO]
+               public WebChannelFactory (string configurationName)
+                       : base (configurationName)
+               {
+               }
+
+               [MonoTODO]
+               public WebChannelFactory (Binding binding)
+                       : base (binding)
+               {
+               }
+
+               [MonoTODO]
+               public WebChannelFactory (Binding binding, Uri serviceBaseUri)
+                       : this (new ServiceEndpoint 
(ContractDescription.GetContract (typeof (TChannel)), binding, new 
EndpointAddress (serviceBaseUri)))
+               {
+               }
+
+               [MonoTODO]
+               public WebChannelFactory (ServiceEndpoint endpoint)
+                       : base (endpoint)
+               {
+               }
+
+               [MonoTODO]
+               protected override void OnOpening ()
+               {
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebGetAttribute.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebGetAttribute.cs
        2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebGetAttribute.cs
        2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,105 @@
+//
+// WebGetAttribute.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+using System.ServiceModel.Dispatcher;
+
+namespace System.ServiceModel.Web
+{
+       [AttributeUsage (AttributeTargets.Method)]
+       public sealed class WebGetAttribute : Attribute, IOperationBehavior
+       {
+               string uri_template;
+               WebMessageFormat request_format, response_format;
+               WebMessageBodyStyle body_style;
+               bool has_body_style, has_request_format, has_response_format;
+
+               public WebMessageBodyStyle BodyStyle {
+                       get { return body_style; }
+                       set {
+                               body_style = value;
+                               has_body_style = true;
+                       }
+               }
+
+               public bool IsBodyStyleSetExplicitly {
+                       get { return has_body_style; }
+               }
+
+               public bool IsRequestFormatSetExplicitly {
+                       get { return has_request_format; }
+               }
+
+               public bool IsResponseFormatSetExplicitly {
+                       get { return has_response_format; }
+               }
+
+               public WebMessageFormat RequestFormat {
+                       get { return request_format; }
+                       set {
+                               request_format = value;
+                               has_request_format = true;
+                       }
+               }
+
+               public WebMessageFormat ResponseFormat {
+                       get { return response_format; }
+                       set {
+                               response_format = value;
+                               has_response_format = true;
+                       }
+               }
+
+               public string UriTemplate {
+                       get { return uri_template; }
+                       set { uri_template = value; }
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.AddBindingParameters 
(OperationDescription operation, BindingParameterCollection parameters)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.ApplyClientBehavior 
(OperationDescription operation, ClientOperation client)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.ApplyDispatchBehavior 
(OperationDescription operation, DispatchOperation service)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.Validate (OperationDescription 
operation)
+               {
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebGetAttribute.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebInvokeAttribute.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebInvokeAttribute.cs
     2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebInvokeAttribute.cs
     2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,111 @@
+//
+// WebInvokeAttribute.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+using System.ServiceModel.Dispatcher;
+
+namespace System.ServiceModel.Web
+{
+       [AttributeUsage (AttributeTargets.Method)]
+       public sealed class WebInvokeAttribute : Attribute, IOperationBehavior
+       {
+               string uri_template;
+               WebMessageFormat request_format, response_format;
+               WebMessageBodyStyle body_style;
+               bool has_body_style, has_request_format, has_response_format;
+               string method = "POST";
+
+               public WebMessageBodyStyle BodyStyle {
+                       get { return body_style; }
+                       set {
+                               body_style = value;
+                               has_body_style = true;
+                       }
+               }
+
+               public bool IsBodyStyleSetExplicitly {
+                       get { return has_body_style; }
+               }
+
+               public bool IsRequestFormatSetExplicitly {
+                       get { return has_request_format; }
+               }
+
+               public bool IsResponseFormatSetExplicitly {
+                       get { return has_response_format; }
+               }
+
+               public WebMessageFormat RequestFormat {
+                       get { return request_format; }
+                       set {
+                               request_format = value;
+                               has_request_format = true;
+                       }
+               }
+
+               public WebMessageFormat ResponseFormat {
+                       get { return response_format; }
+                       set {
+                               response_format = value;
+                               has_response_format = true;
+                       }
+               }
+
+               public string Method {
+                       get { return method; }
+                       set { method = value; }
+               }
+
+               public string UriTemplate {
+                       get { return uri_template; }
+                       set { uri_template = value; }
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.AddBindingParameters 
(OperationDescription operation, BindingParameterCollection parameters)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.ApplyClientBehavior 
(OperationDescription operation, ClientOperation client)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.ApplyDispatchBehavior 
(OperationDescription operation, DispatchOperation service)
+               {
+               }
+
+               [MonoTODO]
+               void IOperationBehavior.Validate (OperationDescription 
operation)
+               {
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebInvokeAttribute.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebServiceHost.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebServiceHost.cs
 2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebServiceHost.cs
 2008-02-07 16:28:29 UTC (rev 95152)
@@ -0,0 +1,61 @@
+//
+// WebServiceHost.cs
+//
+// Author:
+//     Atsushi Enomoto  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc (http://www.novell.com)
+//
+// 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.
+//
+using System;
+using System.ServiceModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+
+// This class does:
+// - manual addressing support (with ChannelFactory, client will fail with
+//   InvalidOperationException that claims missing manual addressing) in every
+//   messages.
+
+namespace System.ServiceModel.Web
+{
+       public class WebServiceHost : ServiceHost
+       {
+               public WebServiceHost ()
+                       : base ()
+               {
+               }
+
+               public WebServiceHost (object singletonInstance, params Uri [] 
baseAddresses)
+                       : base (singletonInstance, baseAddresses)
+               {
+               }
+
+               public WebServiceHost (Type serviceType, params Uri [] 
baseAddresses)
+                       : base (serviceType, baseAddresses)
+               {
+               }
+
+               protected override void OnOpening ()
+               {
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web/WebServiceHost.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources   
    2008-02-07 16:21:59 UTC (rev 95151)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources   
    2008-02-07 16:28:29 UTC (rev 95152)
@@ -17,6 +17,10 @@
 System.ServiceModel.Channels/WebMessageEncoder.cs
 System.ServiceModel.Channels/WebMessageEncoderFactory.cs
 System.ServiceModel.Channels/WebMessageEncodingBindingElement.cs
+System.ServiceModel.Description/WebHttpBehavior.cs
+System.ServiceModel.Dispatcher/JsonQueryStringConverter.cs
+System.ServiceModel.Dispatcher/QueryStringConverter.cs
+System.ServiceModel.Dispatcher/WebHttpDispatchOperationSelector.cs
 System.ServiceModel.Syndication/Atom10FeedFormatter.cs
 System.ServiceModel.Syndication/Atom10FeedFormatter_1.cs
 System.ServiceModel.Syndication/Atom10ItemFormatter.cs
@@ -42,8 +46,12 @@
 System.ServiceModel.Syndication/TextSyndicationContentKind.cs
 System.ServiceModel.Syndication/UrlSyndicationContent.cs
 System.ServiceModel.Syndication/XmlSyndicationContent.cs
+System.ServiceModel.Web/WebChannelFactory.cs
+System.ServiceModel.Web/WebGetAttribute.cs
+System.ServiceModel.Web/WebInvokeAttribute.cs
 System.ServiceModel.Web/WebMessageBodyStyle.cs
 System.ServiceModel.Web/WebMessageFormat.cs
+System.ServiceModel.Web/WebServiceHost.cs
 System.ServiceModel/WebHttpBinding.cs
 System.ServiceModel/WebHttpSecurity.cs
 System.ServiceModel/WebHttpSecurityMode.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to