.NET example

Intro

The following is an example of how to use Insuma search engine Web Service remotedly from your Windows computer, using the MS .NET platform.

The search keywords which you enter are encoded into a SOAP request and sent to Insuma by .NET software. The results come back, get interpreted and shown to the end user as a nice hit list.

This example was tested under MS Windows 2000 and MS Windows XP, but would probably work in the subsequent versions. You must be experienced in Microsoft web hosting and .NET framework to deploy this example.

This example supports 3 following scenarios:

You will need Microsoft Visual Studio .Net in order to execute advanced and expert scenarios.


Simple

  1. Install MS .NET 1.1 Framework. Use your Microsoft .NET installation disk or download it from: http://msdn.microsoft.com/netframework/downloads/howtoget.aspx (Skip this step if you already have .NET 1.1 installed on your computer. )
  2. Download the Simplest.zip and install it.
  3. Run InsumafocusWindowsDotNetExample icon on desktop and the search window starts immediately.

Advanced

  1. Install MS .NET 1.1 Framework. Use your Microsoft .NET installation disk or download it from: http://msdn.microsoft.com/netframework/downloads/howtoget.aspx (Skip this step if you already have .NET 1.1 installed on your computer. )
  2. Download the Advanced.zip and install it.
  3. Open Microsoft Visual Studio .Net 2003 project file: WindowsApplication1.csproj.
  4. Add a reference InsumaFocus under "References" from project folder.
Congratulations, you are done! Now you can improve the search form and the search result screens gradually, using your Visual Studio .NET 2003.

Expert

  1. Install MS .NET 1.1 Framework. Use your Microsoft .NET installation disk or download it from: http://msdn.microsoft.com/netframework/downloads/howtoget.aspx (Skip this step if you already have .NET 1.1 installed on your computer. )
  2. Download the file Form1.cs.
  3. Generate local Web Service proxy class. Generate insumafocus.dll library (it is specific for your hardware platform). The DLL library can be created using existing tools like wsdl.exe or csc.exe (those included in .NET 1.1 Framework). The library provides interaction between your computer and Insuma Focus service. for wsdl.exe it is usually done by the commands:
    wsdl.exe http://www.insuma.de/wsdl/demo.wsdl 
    
    csc /target:library InsumaFocus.cs
    
    where the URL in the parameter is the WSDL contract exposed at Insuma server. Consult wsdl help and internet resources on further details.
  4. Compile application and run:
     
    csc /target:winexe Form1.cs /r:InsumaFocus.dll
    
    Congratulations, you are done! Now you can improve the search form and the search result screens gradually (file: Form1.cs), using your editor.


Copyright © Insuma GmbH