This demo shows the ability of SESJ to handle common Java/XML Schema types. It contains a set of echo operations that return whatever the operations are called with. Additionaly, Java classes and XML Schema structures are prepared to show SESJ tools support - Java2WSDL and WSDLCompiler.
![]() | Note |
---|---|
See the Programmer's Guide for detail about serialization/deserialization of these and other types. |
Mapping of Java Types to XML Schema types and vice versa is described in WSO2 SOA Enablement Server for Java documentation. You can find it in section "Serialization Framework".
In addition to the files described in Files and Directories, this demo contains:
File or directory | Description |
---|---|
src/demo/basic/types/server/ | Server source code |
src/demo/basic/types/client/ | Client 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.
Compile the server classes.
Windows: run.bat make_server Linux: ./run.sh make_server
Run TypesServer (it starts SESJ and publishes the TypesService class).
Windows: run.bat run_server Linux: ./run.sh run_server (use a new terminal)
You can look at TypesService WSDL on 'http://localhost:6060/demo/basic/TypesService/wsdl' from the browser.
Make the client classes.
Windows: run.bat make_client Linux: ./run.sh make_client
Run TypesClient (it calls TypesService).
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.
To run using Persistent Deployment:
Be sure that you've started SESJ.
Compile TypesService.
Windows: run.bat make_service Linux: ./run.sh make_service
Deploy TypesService on the SESJ.
Windows: run.bat deploy_service Linux: ./run.sh deploy_service
Make the client classes.
Windows: ./run.bat make_client Linux: ./run.sh make_client
Run TypesClient (it calls TypesService).
Windows: ./run.bat run_client Linux: ./run.sh run_client
Undeploy TypesService from the SESJ.
Windows: run.bat undeploy_service Linux: ./run.sh undeploy_service