ProtocolImporter.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. //
  2. // System.Web.Services.Description.ProtocolImporter.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.CodeDom;
  10. using System.Web.Services;
  11. using System.Xml.Serialization;
  12. namespace System.Web.Services.Description {
  13. public abstract class ProtocolImporter {
  14. #region Fields
  15. XmlSchemas abstractSchemas;
  16. Binding binding;
  17. string className;
  18. CodeIdentifiers classNames;
  19. CodeNamespace codeNamespace;
  20. CodeTypeDeclaration codeTypeDeclaration;
  21. XmlSchemas concreteSchemas;
  22. Message inputMessage;
  23. string methodName;
  24. Operation operation;
  25. OperationBinding operationBinding;
  26. Message outputMessage;
  27. Port port;
  28. PortType portType;
  29. string protocolName;
  30. XmlSchemas schemas;
  31. Service service;
  32. ServiceDescriptionCollection serviceDescriptions;
  33. ServiceDescriptionImportStyle style;
  34. ServiceDescriptionImportWarnings warnings;
  35. #endregion // Fields
  36. #region Constructors
  37. [MonoTODO]
  38. protected ProtocolImporter ()
  39. {
  40. throw new NotImplementedException ();
  41. }
  42. #endregion // Constructors
  43. #region Properties
  44. public XmlSchemas AbstractSchemas {
  45. get { return abstractSchemas; }
  46. }
  47. public Binding Binding {
  48. get { return binding; }
  49. }
  50. public string ClassName {
  51. get { return className; }
  52. }
  53. public CodeIdentifiers ClassNames {
  54. get { return classNames; }
  55. }
  56. public CodeNamespace CodeNamespace {
  57. get { return codeNamespace; }
  58. }
  59. public CodeTypeDeclaration CodeTypeDeclaration {
  60. get { return codeTypeDeclaration; }
  61. }
  62. public XmlSchemas ConcreteSchemas {
  63. get { return concreteSchemas; }
  64. }
  65. public Message InputMessage {
  66. get { return inputMessage; }
  67. }
  68. public string MethodName {
  69. get { return methodName; }
  70. }
  71. public Operation Operation {
  72. get { return operation; }
  73. }
  74. public OperationBinding OperationBinding {
  75. get { return operationBinding; }
  76. }
  77. public Message OutputMessage {
  78. get { return outputMessage; }
  79. }
  80. public Port Port {
  81. get { return port; }
  82. }
  83. public PortType PortType {
  84. get { return portType; }
  85. }
  86. public abstract string ProtocolName {
  87. get;
  88. }
  89. public XmlSchemas Schemas {
  90. get { return schemas; }
  91. }
  92. public Service Service {
  93. get { return service; }
  94. }
  95. public ServiceDescriptionCollection ServiceDescriptions {
  96. get { return serviceDescriptions; }
  97. }
  98. public ServiceDescriptionImportStyle Style {
  99. get { return style; }
  100. }
  101. public ServiceDescriptionImportWarnings Warnings {
  102. get { return warnings; }
  103. set { warnings = value; }
  104. }
  105. #endregion // Properties
  106. #region Methods
  107. [MonoTODO]
  108. public void AddExtensionWarningComments (CodeCommentStatementCollection comments, ServiceDescriptionFormatExtensionCollection extensions)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. protected abstract CodeTypeDeclaration BeginClass ();
  113. [MonoTODO]
  114. protected virtual void BeginNamespace ()
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. [MonoTODO]
  119. protected virtual void EndClass ()
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. [MonoTODO]
  124. protected virtual void EndNamespace ()
  125. {
  126. throw new NotImplementedException ();
  127. }
  128. protected abstract CodeMemberMethod GenerateMethod ();
  129. protected abstract bool IsBindingSupported ();
  130. protected abstract bool IsOperationFlowSupported (OperationFlow flow);
  131. [MonoTODO]
  132. public Exception OperationBindingSyntaxException (string text)
  133. {
  134. throw new NotImplementedException ();
  135. }
  136. [MonoTODO]
  137. public Exception OperationSyntaxException (string text)
  138. {
  139. throw new NotImplementedException ();
  140. }
  141. [MonoTODO]
  142. public void UnsupportedBindingWarning (string text)
  143. {
  144. throw new NotImplementedException ();
  145. }
  146. [MonoTODO]
  147. public void UnsupportedOperationBindingWarning (string text)
  148. {
  149. throw new NotImplementedException ();
  150. }
  151. [MonoTODO]
  152. public void UnsupportedOperationWarning (string text)
  153. {
  154. throw new NotImplementedException ();
  155. }
  156. #endregion
  157. }
  158. }