Overview of Sample Applications


Overview of CourierApp

The CourierApp Sample Web application is a Sample that demonstrates the capabilities of RPCAdapter like handling of XML and JSON responses, white and black list methods and specifying validators. The steps for the installation of this Sample are on the Installation page. You can access the sample by using the link, http://localhost:9080/CourierApp. The default port for WebSphere® Application Server Community Edition is 8080. This brings up a page that has links to Courier Service using JSON or XML. If you click on the "Courier Service using JSON" link, the corresponding page is displayed. After selecting a postal code, the address details are automatically populated. This uses RPC adapter's JSON service to access the address lookup service. The same application is also implemented using RPC Adapters XML RPC. For example, access http://localhost:9080/CourierApp/CourierService_xmlrpc.jsp.

Overview of HelloWorldApp

The HelloWorld Sample application demonstrates the usage of EJB modules in RPCAdapter. It also demonstrates the capabilities of RPCAdapter like handling of XML and JSON responses and specifying validators. The installation procedure are on the Installation page. This Sample can be accessed using the link, http://localhost:9080/helloworld. The default port for WebSphere Application Server Community Edition is 8080. The resulting page contains links to access HelloWorld application using JSON or XML. If any of the links are clicked the corresponding page is displayed. The resulting page accepts a name from the user and displays a simple message on clicking the "SayHello" button. In addition to these, the exposure of overloaded methods is demonstrated with the "Get Fortune/Advice" button. This is achieved by mapping unique method names to the overloaded methods in the configuration file. The subclass conversion feaure can also seen when the result is returned. The year of birth is also validated using the validator feature. The application uses XML and JSON services of the RPC adapter to validate name and display message. The functions for validation and message display are implemented in EJB modules.

Note: The host name and ports might vary according to your server configuration. The default port for WebSphere Application Server Community Edition is 8080.