The Labs \ Source Viewer \ SSCLI \ System.Runtime.Serialization.Formatters \ SoapMessage

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Class: SoapMessage
  18. **
  19. **
  20. ** Purpose: Interface For Soap Method Call
  21. **
  22. **
  23. ===========================================================*/
  24. namespace System.Runtime.Serialization.Formatters
  25. {
  26.     using System.Runtime.Remoting;
  27.     using System.Runtime.Remoting.Messaging;
  28.     using System.Runtime.Serialization;
  29.     using System;
  30.     // Class is used to return the call object for a SOAP call.
  31.     // This is used when the top SOAP object is a fake object, it contains
  32.     // a method name as the element name instead of the object name.
  33.     [Serializable()]
  34.     [System.Runtime.InteropServices.ComVisible(true)]
  35.     public class SoapMessage : ISoapMessage
  36.     {
  37.         internal string[] paramNames;
  38.         internal object[] paramValues;
  39.         internal Type[] paramTypes;
  40.         internal string methodName;
  41.         internal string xmlNameSpace;
  42.         internal Header[] headers;
  43.        
  44.         // Name of parameters, if null the default param names will be used
  45.         public string[] ParamNames {
  46.             get { return paramNames; }
  47.             set { paramNames = value; }
  48.         }
  49.        
  50.         // Parameter Values
  51.         public object[] ParamValues {
  52.             get { return paramValues; }
  53.             set { paramValues = value; }
  54.         }
  55.        
  56.         public Type[] ParamTypes {
  57.             get { return paramTypes; }
  58.             set { paramTypes = value; }
  59.         }
  60.        
  61.         // MethodName
  62.         public string MethodName {
  63.             get { return methodName; }
  64.             set { methodName = value; }
  65.         }
  66.        
  67.         // MethodName XmlNameSpace
  68.         public string XmlNameSpace {
  69.             get { return xmlNameSpace; }
  70.             set { xmlNameSpace = value; }
  71.         }
  72.        
  73.         // Headers
  74.         public Header[] Headers {
  75.             get { return headers; }
  76.             set { headers = value; }
  77.         }
  78.        
  79.        
  80.     }
  81. }

Developer Fusion