ProtocolReflector.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. //
  2. // System.Web.Services.Description.ProtocolReflector.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services;
  10. using System.Web.Services.Protocols;
  11. using System.Xml.Serialization;
  12. namespace System.Web.Services.Description {
  13. public abstract class ProtocolReflector {
  14. #region Fields
  15. Binding binding;
  16. string defaultNamespace;
  17. MessageCollection headerMessages;
  18. Message inputMessage;
  19. LogicalMethodInfo method;
  20. WebMethodAttribute methodAttribute;
  21. LogicalMethodInfo[] methods;
  22. Operation operation;
  23. OperationBinding operationBinding;
  24. Message outputMessage;
  25. Port port;
  26. PortType portType;
  27. string protocolName;
  28. XmlReflectionImporter reflectionImporter;
  29. XmlSchemaExporter schemaExporter;
  30. XmlSchemas schemas;
  31. Service service;
  32. ServiceDescription serviceDescription;
  33. ServiceDescriptionCollection serviceDescriptions;
  34. Type serviceType;
  35. string serviceUrl;
  36. #endregion // Fields
  37. #region Constructors
  38. [MonoTODO]
  39. protected ProtocolReflector ()
  40. {
  41. throw new NotImplementedException ();
  42. }
  43. #endregion // Constructors
  44. #region Properties
  45. public Binding Binding {
  46. get { return binding; }
  47. }
  48. public string DefaultNamespace {
  49. get { return defaultNamespace; }
  50. }
  51. public MessageCollection HeaderMessages {
  52. get { return headerMessages; }
  53. }
  54. public Message InputMessage {
  55. get { return inputMessage; }
  56. }
  57. public LogicalMethodInfo Method {
  58. get { return method; }
  59. }
  60. public WebMethodAttribute MethodAttribute {
  61. get { return methodAttribute; }
  62. }
  63. public LogicalMethodInfo[] Methods {
  64. get { return methods; }
  65. }
  66. public Operation Operation {
  67. get { return operation; }
  68. }
  69. public OperationBinding OperationBinding {
  70. get { return operationBinding; }
  71. }
  72. public Message OutputMessage {
  73. get { return outputMessage; }
  74. }
  75. public Port Port {
  76. get { return port; }
  77. }
  78. public PortType PortType {
  79. get { return portType; }
  80. }
  81. public abstract string ProtocolName {
  82. get;
  83. }
  84. public XmlReflectionImporter ReflectionImporter {
  85. get { return reflectionImporter; }
  86. }
  87. public XmlSchemaExporter SchemaExporter {
  88. get { return schemaExporter; }
  89. }
  90. public XmlSchemas Schemas {
  91. get { return schemas; }
  92. }
  93. public Service Service {
  94. get { return service; }
  95. }
  96. public ServiceDescription ServiceDescription {
  97. get { return serviceDescription; }
  98. }
  99. public ServiceDescriptionCollection ServiceDescriptions {
  100. get { return serviceDescriptions; }
  101. }
  102. public Type ServiceType {
  103. get { return serviceType; }
  104. }
  105. public string ServiceUrl {
  106. get { return serviceUrl; }
  107. }
  108. #endregion // Properties
  109. #region Methods
  110. [MonoTODO]
  111. protected virtual void BeginClass ()
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. protected virtual void EndClass ()
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. public ServiceDescription GetServiceDescription (string ns)
  121. {
  122. return serviceDescriptions [ns];
  123. }
  124. protected abstract bool ReflectMethod ();
  125. [MonoTODO]
  126. protected virtual string ReflectMethodBinding ()
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. #endregion
  131. }
  132. }