2 // System.Web.Services.Description.ProtocolImporter.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.CodeDom;
\r
11 using System.Web.Services;
\r
12 using System.Xml.Serialization;
\r
14 namespace System.Web.Services.Description {
\r
15 public abstract class ProtocolImporter {
\r
19 XmlSchemas abstractSchemas;
\r
22 CodeIdentifiers classNames;
\r
23 CodeNamespace codeNamespace;
\r
24 CodeTypeDeclaration codeTypeDeclaration;
\r
25 XmlSchemas concreteSchemas;
\r
26 Message inputMessage;
\r
28 Operation operation;
\r
29 OperationBinding operationBinding;
\r
30 Message outputMessage;
\r
33 string protocolName;
\r
36 ServiceDescriptionCollection serviceDescriptions;
\r
37 ServiceDescriptionImportStyle style;
\r
38 ServiceDescriptionImportWarnings warnings;
\r
40 #endregion // Fields
\r
42 #region Constructors
\r
45 protected ProtocolImporter ()
\r
47 throw new NotImplementedException ();
\r
50 #endregion // Constructors
\r
54 public XmlSchemas AbstractSchemas {
\r
55 get { return abstractSchemas; }
\r
58 public Binding Binding {
\r
59 get { return binding; }
\r
62 public string ClassName {
\r
63 get { return className; }
\r
66 public CodeIdentifiers ClassNames {
\r
67 get { return classNames; }
\r
70 public CodeNamespace CodeNamespace {
\r
71 get { return codeNamespace; }
\r
74 public CodeTypeDeclaration CodeTypeDeclaration {
\r
75 get { return codeTypeDeclaration; }
\r
78 public XmlSchemas ConcreteSchemas {
\r
79 get { return concreteSchemas; }
\r
82 public Message InputMessage {
\r
83 get { return inputMessage; }
\r
86 public string MethodName {
\r
87 get { return methodName; }
\r
90 public Operation Operation {
\r
91 get { return operation; }
\r
94 public OperationBinding OperationBinding {
\r
95 get { return operationBinding; }
\r
98 public Message OutputMessage {
\r
99 get { return outputMessage; }
\r
103 get { return port; }
\r
106 public PortType PortType {
\r
107 get { return portType; }
\r
110 public abstract string ProtocolName {
\r
114 public XmlSchemas Schemas {
\r
115 get { return schemas; }
\r
118 public Service Service {
\r
119 get { return service; }
\r
122 public ServiceDescriptionCollection ServiceDescriptions {
\r
123 get { return serviceDescriptions; }
\r
126 public ServiceDescriptionImportStyle Style {
\r
127 get { return style; }
\r
130 public ServiceDescriptionImportWarnings Warnings {
\r
131 get { return warnings; }
\r
132 set { warnings = value; }
\r
135 #endregion // Properties
\r
140 public void AddExtensionWarningComments (CodeCommentStatementCollection comments, ServiceDescriptionFormatExtensionCollection extensions)
\r
142 throw new NotImplementedException ();
\r
145 protected abstract CodeTypeDeclaration BeginClass ();
\r
148 protected virtual void BeginNamespace ()
\r
150 throw new NotImplementedException ();
\r
154 protected virtual void EndClass ()
\r
156 throw new NotImplementedException ();
\r
160 protected virtual void EndNamespace ()
\r
162 throw new NotImplementedException ();
\r
165 protected abstract CodeMemberMethod GenerateMethod ();
\r
166 protected abstract bool IsBindingSupported ();
\r
167 protected abstract bool IsOperationFlowSupported (OperationFlow flow);
\r
170 public Exception OperationBindingSyntaxException (string text)
\r
172 throw new NotImplementedException ();
\r
176 public Exception OperationSyntaxException (string text)
\r
178 throw new NotImplementedException ();
\r
182 public void UnsupportedBindingWarning (string text)
\r
184 throw new NotImplementedException ();
\r
188 public void UnsupportedOperationBindingWarning (string text)
\r
190 throw new NotImplementedException ();
\r
194 public void UnsupportedOperationWarning (string text)
\r
196 throw new NotImplementedException ();
\r