WebServiceParser.cs 754 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // System.Web.UI.WebServiceParser
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System.Web;
  10. using System.Web.Compilation;
  11. namespace System.Web.UI
  12. {
  13. public class WebServiceParser : SimpleWebHandlerParser
  14. {
  15. private WebServiceParser (HttpContext context, string virtualPath, string physicalPath)
  16. : base (context, virtualPath, physicalPath)
  17. {
  18. }
  19. public static Type GetCompiledType (string inputFile, HttpContext context)
  20. {
  21. WebServiceParser parser = new WebServiceParser (context, null, inputFile);
  22. return WebServiceCompiler.CompileIntoType (parser);
  23. }
  24. protected override string DefaultDirectiveName {
  25. get {
  26. return "webservice";
  27. }
  28. }
  29. }
  30. }