C# Types SSJ Interoperability  Locate

Overview  Locate

This demo shows SSJ interoperability with .NET on the cts types level. It contains a set of echo operations that return the objects with which they are called.

Separate SSJ clients and .NET services are made for both the rpc/encoded and document/literal specifications.

The following table shows cts types and their mapping to Java types:

cts type (c# type)      java type
--------------------------------------------
boolean(bool)           boolean
byte(byte)              java.lang.short
char(char)              java.lang.integer
decimal(decimal)        java.math.bigdecimal
double(double)          double
single(float)           float
int32(int)              int
int64(long)             long
sbyte(sbyte)            byte
int16(short)            short
uint32(uint)            java.lang.long
uint64(ulong)           java.math.biginteger
uint16(ushort)          java.lang.integer

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\wasptodotnet\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 the "run.sh" (for unix) or "run.bat" (for windows) scripts. Running the script without arguments prints out a help message on screen.

  1. Create a virtual folder in IIS by completing these steps:

    1. Click Start, select 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 (CTSTypesServiceDocLit or CTSTypesServiceRpcEnc) and click Next again.

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

         %wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\doclit\src\service
      or %wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\rpcenc\src\service.
      

      Click Next.

    5. In the fourth screen, click Next.

    6. Click Finish to complete the wizard.

    7. Close the internet services manager.

  2. Change directory to:

       %wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\doclit
    or %wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\rpcenc
    
  3. Make the client classes:

    windows: run.bat make_client
    linux:   ./run.sh make_client
    
  4. Run the client (it calls ctstypesservice):

    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.

  5. Undeploy the service by manually deleting the virtual folder.