- // ==++==
- //
- //
- // Copyright (c) 2002 Microsoft Corporation. All rights reserved.
- //
- // The use and distribution terms for this software are contained in the file
- // named license.txt, which can be found in the root of this distribution.
- // By using this software in any fashion, you are agreeing to be bound by the
- // terms of this license.
- //
- // You must not remove this notice, or any other, from this software.
- //
- //
- // ==--==
- //============================================================
- //
- // File: SudsParser.cs
- // Purpose: Defines SUDSParser that parses a given SUDS document
- // and generates types defined in it.
- //
- // Date: April 01, 2000
- // Revised: November 15, 2000 (Wsdl)
- //
- //============================================================
- namespace System.Runtime.Remoting.MetadataServices
- {
- using System;
- using System.IO;
- using System.Runtime.Remoting;
- using System.Collections;
- // Represents exceptions thrown by the SUDSParser
- /// <include file='doc/SudsParser.uex' path='docs/doc[@for="SUDSParserException"]/*' />
- public class SUDSParserException : Exception
- {
- internal SUDSParserException(String message)
- : base(message)
- {
- }
- }
- // Represents a block type of a complex type
- [Serializable]
- internal enum SchemaBlockType { ALL, SEQUENCE, CHOICE, ComplexContent}
- // This class parses SUDS documents
- /// <include file='doc/SudsParser.uex' path='docs/doc[@for="SUDSParser"]/*' />
- internal class SUDSParser
- {
- WsdlParser wsdlParser;
- // Main parser
- internal SUDSParser(TextReader input, String outputDir, ArrayList outCodeStreamList, String locationURL, bool bWrappedProxy, String proxyNamespace)
- {
- Util.Log("SUDSParser.SUDSParser outputDir "+outputDir+" locationURL "+locationURL+" bWrappedProxy "+bWrappedProxy+" proxyNamespace "+proxyNamespace);
- Util.LogInput(ref input);
- wsdlParser = new WsdlParser(input, outputDir, outCodeStreamList, locationURL, bWrappedProxy, proxyNamespace);
- }
- internal void Parse()
- {
- Util.Log("SUDSParser.Parse");
- wsdlParser.Parse();
- }
- }
- }
SudsParser.cs
最新推荐文章于 2023-04-18 23:07:30 发布