Samples for .NET

The following sample programs are supplied for the .NET environment. Most of these can be run using the supplied IVT; those that cannot are indicated.:

StockQuoteDotNet.asmx

Defines the stock quote service. This file is used to generate the proxies required by the client code.

SQCS2Axis.cs, SQVB2Axis.vb

These samples provide an example of a request to an Axis service providing stock quotes. The samples provide examples coded in C# and Visual Basic respectively.

SQCS2DotNet.cs, SQCS2DotNet.vb

These samples provide an example of a request to a .NET service providing stock quotes. The samples provide examples coded in C# and Visual Basic respectively.

SQDNNoninline.asmx, SQDNNoninline.asmx.cs, SQCS2DNNoninline.cs

These 3 files provide an example of the use of non inline code using the codebehind technique in an 'asmx' file. These are not part of the IVT. To run this sample, do the following:

  1. Compile the SQDNNoninline.asmx.cs and build a .dll from the resulting object file.

  2. Put the .dll in the 'bin' subdirectory of the directory from where the service is run.

  3. The file SQCS2DNNoninline.cs is a sample of the client code that invokes the service. The client invokes the service with a 'targetService' of SQDNNoninline.asmx