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
The docLit\ and rpcEnc\ subdirectories each contain the files described in Files and Directories and the following:
File or directory | Description |
---|---|
src\service\ | Service source code |
src\demo\interop\msinterop\wasptodotnet\client\ | Client source code |
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.
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.
Create a virtual folder in IIS by completing these steps:
Click Start, select programs, select administrative tools, and then click internet services manager.
In the left pane, right-click default web site, select new, and then click virtual directory.
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.
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.
In the fourth screen, click Next.
Click Finish to complete the wizard.
Close the internet services manager.
Change directory to:
%wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\doclit or %wasp_home%\demo\interop\msinterop\wasptodotnet\ctstypes\rpcenc
Make the client classes:
windows: run.bat make_client linux: ./run.sh make_client
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:
Run server_java60/bin/soapspy.bat or soapspy.sh. This will bring up the SoapSpy GUI.
Start spying by selecting Start Spying from the Spy menu or by clicking the spy icon in the main pane.
Run the client using the run spy_client command instead of run_client.
Undeploy the service by manually deleting the virtual folder.