Common Scenarios

ASP.NET

Probably the most common use of the CodeDom technology is via Internet Information Services (IIS) and ASP.NET. The installation of the Eiffel for ASP.NET will configure the machine so ASP.NET pages can be written in Eiffel. Consult the Eiffel for ASP.NET documentation for details on how to write ASP.NET Eiffel pages.

WSDL

Another use of the CodeDom technology is via the WSDL utility. This utility is part of the .NET Framework SDK and is a common line application that can be used to automatically generate stub source code for any Web Service described by a Web Service Description Language (WSDL) file. It is possible to tell the utility which CodeDom Provider to use via the command line as follows: Wsdl /language:"EiffelSoftware.CodeDom.CodeDomProvider, EiffelSoftware.CodeDom, Version=2.0.1.1402, Culture=neutral, PublicKeyToken=def26f296efef469"<br/> http://api.google.com/GoogleSearch.wsdl

Note: The version number used above might differ depending on the version of the Eiffel CodeDom Provider dll installed on your system.

Note: The example above uses the Google web service, the corresponding URL is correct at the time of writing but there is no guarentee it won't change (or be removed) in the future.

This will generate a file with the extension .es which contains multiple Eiffel class definitions. Compiling this file will require using the CodeDom compiler (programmatically via the CodeDom ICodeCompiler interface) or using the eSplitter tool to generate standard Eiffel source files (.e files) that can then be compiled by the standard Eiffel compiler.

15334d95-2ef5-6e1b-1754-051342bb7290
cached: 07/23/2017 9:20:06.000 AM