Java primitive types .NET interoperability  Locate

Overview  Locate

This demo shows SESJ interoperability with .NET on Java primitive types level. It contains a set of echo operations that return the variables with which they are called. Separate SESJ services and .NET clients are made for both the RPC/Encoded and Document/Literal specifications.

The following table shows Java primitive types and their mapping to CTS types:

Java primitive type     CTS type(C# type)
====================================================================
boolean                 Boolean(bool)
byte                    SByte(sbyte)
char                    String(string)
double                  Double(Double)
float                   Single(Single)
int                     Int32(int)
long                    Int64(long)
short                   Int16(short)

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\demo\interop\msInterop\dotNetToWasp\server\

Server source code

src\client\

C# 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 CSharp 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. Be sure that you've started SESJ.

  2. Compile the EchoService ...

    Windows: run.bat make_service
    Linux:   ./run.sh make_service
    
  3. Deploy the EchoService on the SESJ ...

    Windows: run.bat deploy_service
    Linux:   ./run.sh deploy_service
    
  4. Make client executable ...

    Windows: run.bat make_client
    
  5. Run the Client (it calls EchoService) ...

    Windows: run.bat run_client
    
  6. Undeploy the HelloService from the SESJ ...

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