SudsParser.cs

  1. // ==++==
  2. // 
  3. //   
  4. //    Copyright (c) 2002 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.Collections;
  31.     // Represents exceptions thrown by the SUDSParser
  32.     /// <include file='doc/SudsParser.uex' path='docs/doc[@for="SUDSParserException"]/*' />
  33.     public class SUDSParserException : Exception
  34.     {
  35.         internal SUDSParserException(String message)
  36.         : base(message)
  37.         {
  38.         }
  39.     }
  40.     // Represents a block type of a complex type
  41.     [Serializable]
  42.     internal enum SchemaBlockType { ALL, SEQUENCE, CHOICE, ComplexContent}
  43.     // This class parses SUDS documents
  44.     /// <include file='doc/SudsParser.uex' path='docs/doc[@for="SUDSParser"]/*' />
  45.     internal class SUDSParser
  46.     {
  47.         WsdlParser wsdlParser;
  48.                                                         
  49.         // Main parser
  50.         internal SUDSParser(TextReader input, String outputDir, ArrayList outCodeStreamList, String locationURL, bool bWrappedProxy, String proxyNamespace)
  51.         {
  52.             Util.Log("SUDSParser.SUDSParser outputDir "+outputDir+" locationURL "+locationURL+" bWrappedProxy "+bWrappedProxy+" proxyNamespace "+proxyNamespace);
  53.             Util.LogInput(ref input);
  54.             wsdlParser = new WsdlParser(input, outputDir, outCodeStreamList, locationURL, bWrappedProxy, proxyNamespace);
  55.         }
  56.         internal void Parse()
  57.         {
  58.             Util.Log("SUDSParser.Parse");
  59.             wsdlParser.Parse();
  60.         }
  61.     }
  62. }
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值