ILOG Rules for .NET User Guides > Samples > Executing Samples > Web Service Invocation Sample

This sample demonstrates how to setup a Web service that can execute business rules. This sample simply shows how to embed a single rule engine in a Web service. It is not intended to be used as a model for deploying rule engines in a server farm; for example, it does not address the synchronization of several applications calling the same method of the rule engine at the same time.

This sample covers:

The C# source files of this sample are in the directory <InstallDir>\Samples\Executing\Web Service Invocation\cs.

The Visual Basic source files of this sample are in the directory <InstallDir>\Samples\Executing\Web Service Invocation\vb.

Where <InstallDir> refers to the installation directory of ILOG Rule Studio for .NET.

This sample contains the following files and directories:

To run the sample
  1. Open the solution Web Service Invocation.sln.
  2. From the Build menu, click Build Solution.
  3. From the Debug menu, click Start Without Debugging.

Highlights

Both a XML Web service (WebService project) and an application that invokes it (Application project) are defined in this sample.

The business object model is located in the Web service only. Objects are created by the caller application (Application) by invoking the Web service interface. Therefore, there is no risk that the business object model changes on the client side without updating the server side.

The Web service creates a unique rule engine (in Global.asax.[cs|vb]) that is used by all the XML Web service invocations.

See Also

Rule Application Sample