* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / SoapClientMessage.cs
index b3c5d79033f0bccb38a894fa26bdff7822b85510..b1a1d30a9cdb0f1d885a54ee46258fc549ff7209 100644 (file)
@@ -8,6 +8,27 @@
 // Copyright (C) Tim Coleman, 2002\r
 // Copyright (C) Ximian, Inc. 2003\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.Web.Services;\r
 using System.Web.Services.Protocols;\r
@@ -19,9 +40,12 @@ namespace System.Web.Services.Protocols {
 \r
                SoapHttpClientProtocol client;\r
                string url;\r
-               LogicalMethodInfo client_method;\r
-               SoapDocumentMethodAttribute sma;\r
-               object [] parameters;\r
+               internal SoapMethodStubInfo MethodStubInfo;\r
+\r
+               //\r
+               // Expose this one internally\r
+               //\r
+               internal object [] Parameters;\r
                #endregion\r
 \r
                #region Constructors\r
@@ -29,14 +53,12 @@ namespace System.Web.Services.Protocols {
                //\r
                // Constructs the SoapClientMessage\r
                //\r
-               internal SoapClientMessage (SoapHttpClientProtocol client, SoapDocumentMethodAttribute sma,\r
-                                           LogicalMethodInfo client_method, bool one_way, string url, object [] parameters)\r
+               internal SoapClientMessage (SoapHttpClientProtocol client, SoapMethodStubInfo msi, string url, object [] parameters)\r
                {\r
-                       this.sma = sma;\r
+                       this.MethodStubInfo = msi;\r
                        this.client = client;\r
-                       this.client_method = client_method;\r
                        this.url = url;\r
-                       this.parameters = parameters;\r
+                       Parameters = parameters;\r
                }\r
 \r
                #endregion \r
@@ -44,7 +66,7 @@ namespace System.Web.Services.Protocols {
                #region Properties\r
 \r
                public override string Action {\r
-                       get { return sma.Action; }\r
+                       get { return MethodStubInfo.Action; }\r
                }\r
 \r
                public SoapHttpClientProtocol Client {\r
@@ -52,29 +74,32 @@ namespace System.Web.Services.Protocols {
                }\r
 \r
                public override LogicalMethodInfo MethodInfo {\r
-                       get { return client_method; }\r
+                       get { return MethodStubInfo.MethodInfo; }\r
                }\r
 \r
                public override bool OneWay {\r
-                       get { return sma.OneWay; }\r
+                       get { return MethodStubInfo.OneWay; }\r
                }\r
 \r
                public override string Url {\r
                        get { return url; }\r
                }\r
+               \r
+#if NET_2_0\r
+               [MonoTODO]\r
+               [System.Runtime.InteropServices.ComVisible(false)]\r
+               public override SoapProtocolVersion SoapVersion {\r
+                       get { throw new NotImplementedException (); }\r
+               }\r
+#endif\r
 \r
                #endregion // Properties\r
 \r
                #region Methods\r
 \r
-               [MonoTODO]\r
                protected override void EnsureInStage ()\r
                {\r
-                       //\r
-                       // I believe for SoapClientMessage, we can safely remove this check\r
-                       // as the In parameters are always available\r
-                       //\r
-                       throw new NotImplementedException ();\r
+                       EnsureStage (SoapMessageStage.BeforeSerialize);\r
                }\r
 \r
                protected override void EnsureOutStage ()\r
@@ -84,4 +109,4 @@ namespace System.Web.Services.Protocols {
 \r
                #endregion // Methods\r
        }\r
-}\r
+}