The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.MetadataServices \ SchemaBlockType

  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. // File: SudsParser.cs
  18. // Purpose: Defines SUDSParser that parses a given SUDS document
  19. // and generates types defined in it.
  20. //
  21. // Date: April 01, 2000
  22. // Revised: November 15, 2000 (Wsdl)
  23. //
  24. //============================================================
  25. namespace System.Runtime.Remoting.MetadataServices
  26. {
  27.     using System;
  28.     using System.IO;
  29.     using System.Runtime.Remoting;
  30.     using System.Runtime.Serialization;
  31.     using System.Collections;
  32.    
  33.     // Represents exceptions thrown by the SUDSParser
  34.     [Serializable()]
  35.     public class SUDSParserException : Exception
  36.     {
  37.         internal SUDSParserException(string message) : base(message)
  38.         {
  39.         }
  40.        
  41.         protected SUDSParserException(SerializationInfo info, StreamingContext context) : base(info, context)
  42.         {
  43.         }
  44.     }
  45.    
  46.     // Represents a block type of a complex type
  47.     [Serializable()]
  48.     internal enum SchemaBlockType
  49.     {
  50.         ALL,
  51.         SEQUENCE,
  52.         CHOICE,
  53.         ComplexContent
  54.     }
  55.    
  56.     // This class parses SUDS documents
  57.     internal class SUDSParser
  58.     {
  59.         WsdlParser wsdlParser;
  60.        
  61.         // Main parser
  62.         internal SUDSParser(TextReader input, string outputDir, ArrayList outCodeStreamList, string locationURL, bool bWrappedProxy, string proxyNamespace)
  63.         {
  64.             Util.Log("SUDSParser.SUDSParser outputDir " + outputDir + " locationURL " + locationURL + " bWrappedProxy " + bWrappedProxy + " proxyNamespace " + proxyNamespace);
  65.             Util.LogInput(ref input);
  66.             wsdlParser = new WsdlParser(input, outputDir, outCodeStreamList, locationURL, bWrappedProxy, proxyNamespace);
  67.         }
  68.        
  69.         internal void Parse()
  70.         {
  71.             Util.Log("SUDSParser.Parse");
  72.             wsdlParser.Parse();
  73.         }
  74.        
  75.     }
  76. }

Developer Fusion