Setting up .NET mobile web service applications

Before using .NET with QAnywhere, you must make the following changes to your Visual Studio project:

  • Add references to the QAnywhere .NET DLL and the mobile web services .NET DLL. This tells Visual Studio which DLL to include to find the code for the QAnywhere .NET API and the mobile web services .NET API.

  • Add lines to your source code to reference the QAnywhere .NET API classes and the mobile web services .NET API classes. To use the QAnywhere .NET API, you must add a line to your source code to reference the data provider. You must add a different line for C# than for Visual Basic.

Complete instructions follow.

 To add references to the QAnywhere .NET API and mobile web services API in a Visual Studio project
  1. Start Visual Studio and open your project.

  2. In the Solution Explorer window, right-click the References folder and choose Add Reference.

  3. On the Browse tab, locate iAnywhere.QAnywhere.Client.dll and iAnywhere.QAnywhere.WS.dll in the following directories:

    • .NET Framework 2.0: install-dir\Assembly\V2
    • .NET Compact Framework 2.0: install-dir\ce\Assembly\V2

    From the appropriate directory for your environment, select each DLL and click Open.

  4. To verify that the DLLs are added to your project, expand the References tree in the Solution Explorer. iAnywhere.QAnywhere.Client.dll and iAnywhere.QAnywhere.WS.dll should appear in the list.

 Referencing the data provider classes in your source code
 See also
 Example