This demo is called from SESJ C++ client, be sure you have installed SESJ for C++ and have a look at demo/interop/java in C++ distribution.
This demo shows the interoperability between SESJ for C++ and WSO2 SOA Enablement Server for Java, where the client side is developed in SESJ for C++ and server side in WSO2 SOA Enablement Server for Java. Reverse interoperability is demonstrated in wasptocpp.BarnService demo.
BarnService is simple service which exposes some (not all) basic processes of barn. We can find out barn rating, which indicates barn quality, which cows are suitable for slaughter, etc.
At initialization, BarnService is filled with some data. No further description of this service is needed because of it's simplicity.
In addition to the files described in Files and Directories, this demo contains:
File or directory | Description |
---|---|
src/demo/interop/cpptowasp/barn/server/ | Server source code |
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.
The demo can be run in two different ways:
To use Runtime Publishing, follow these steps:
Be sure that you have not started SESJ.
Make the client classes.
Compile the server classes.
Windows: run.bat make_server Linux: ./run.sh make_server
Run the BarnServer class (it starts SESJ and publishes BarnService).
Windows: run.bat run_server Linux: ./run.sh run_server (use a new terminal)
You can look at HelloService WSDL on 'http://real_hostname:6060/demo/interop/BarnService/wsdl' from browser.
To run using Persistent Deployment:
Be sure that you've started SESJ.
Compile the BarnService class.
Windows: run.bat make_service Linux: ./run.sh make_service
Deploy BarnService on the SESJ.
Windows: run.bat deploy_service Linux: ./run.sh deploy_service
Undeploy BarnService from the SESJ.
Windows: run.bat undeploy_service Linux: ./run.sh undeploy_service