.NET Collections in SESJ  Locate

Overview  Locate

This demo shows SESJ interoperability with .NET over .NET collections.

SESJ is fully compatible with .NET over all the basic types which is .NET able to serialize and deserialize over SOAP. Those are:

System.Collections.ArrayList
System.Collections.Specialized.StringCollection

Demo shows communication in both modes, rpc/encoded and document/literal.

Demo Package Description  Locate

The docLit\ and rpcEnc\ subdirectories each contain the files described in Files and Directories and the following:

File or directoryDescription
src\service\

Service source code

src\demo\interop\msInterop\dotNetCollections\client\

Client source code

Prerequisites and Preparatory Steps  Locate

The following list outlines the software and service packs that you will need to be able to compile and run C# clients and access the features of ASP.NET:

  • Microsoft .NET Framework and .NET Framework SDK,

  • IIS with the latest security updates (must be installed prior to installing the .NET Framework and .NET Framework SDK),

In addition, you will need administrative rights on the computer.

Building and Running Demos  Locate

You can run the demo using "run.sh" or "run.bat" scripts. The script on invocation without arguments prints out a help message.

  1. Create a Virtual Folder in IIS by

    1. Click Start, point to Programs, select Administrative Tools, and then click Internet Services Manager.

    2. In the left pane, right-click Default Web Site, select New, and then click Virtual Directory.

    3. In the first screen of the Virtual Directory Creation Wizard click Next, type an alias for the site (DotNetCollectionsDocLit or DotNetCollectionsRpcEnc) and click Next again.

    4. In the third screen, click Browse. Browse to

      %WASP_HOME%\demo\interop\msInterop\dotNetCollections\docLit\src\service
      or %WASP_HOME%\demo\interop\msInterop\dotNetCollections\rpcEnc\src\service.
      

      Click Next.

    5. In the fourth screen, click Next.

    6. Click Finish to complete the wizard.

    7. Close Internet Services Manager.

  2. Make client classes ...

    Windows: run.bat make_client
    Linux:   ./run.sh make_client
    
  3. Run the CollectionsClient (it calls CollectionsService) ...

    Windows: run.bat run_client
    Linux:   ./run.sh run_client
    

    If you wish to follow the progress of the invocation with SoapSpy, perform the following:

    1. Run server_java60/bin/soapspy.bat or soapspy.sh. This will bring up the SoapSpy GUI.

    2. Start spying by selecting Start Spying from the Spy menu or by clicking the spy icon in the main pane.

    3. Run the client using the run spy_client command instead of run_client.

  4. Undeploy service by manually deleting created Virtual Folder.