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)
The docLit\ and rpcEnc\ subdirectories each contain the files described in Files and Directories and the following:
File or directory | Description |
---|---|
src\demo\interop\msInterop\dotNetToWasp\server\ | Server source code |
src\client\ | C# client source code |
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.
You can run the demo using "run.sh" or "run.bat" scripts. The script on invocation without arguments prints out a help message.
Be sure that you've started SESJ.
Compile the EchoService ...
Windows: run.bat make_service Linux: ./run.sh make_service
Deploy the EchoService on the SESJ ...
Windows: run.bat deploy_service Linux: ./run.sh deploy_service
Make client executable ...
Windows: run.bat make_client
Run the Client (it calls EchoService) ...
Windows: run.bat run_client
Undeploy the HelloService from the SESJ ...
Windows: run.bat undeploy_service Linux: ./run.sh undeploy_service