RPCAdapter RPCAdapter com.ibm.websphere.rpcadapter.RPCAdapter RPCAdapter /RPCAdapter RPCAdapter /RPCAdapter/*
Create the RpcAdapterConfig.xml file as specified in the HTTP RPC section of the Overview page, and add this to WEB-INF folder. Then, start the application server and access http://host/<contextRoot>/RPCAdapter/RPCAdapter/httprpc
to see the directory of deployed services.
RPCAdapter also includes a sample courier application. This application demonstrates capabilities of RPC adapter
like handling of XML and JSON responses, white and black list methods, and specifying validators. The CourierApp.war file is available in the samples directory of the RPCAdapter. Deploy this Web archive (WAR) file and access http://yourhost:yourport/CourierApp/CourierService.jsp
. After selecting a zip or postal code, the address details are automatically populated. This uses the JSON service for the RPC adapter to access the AddressLookup service. The same application is also implemented using RPC Adapters XML RPC
(try accessing http://yourhost:yourport/CourierApp/CourierService_xmlrpc.jsp
).In addition to these links,the working of a batched call can be observed by accessing http://yourhost:yourport/CourierApp/Getfares.jsp
.When the customer details are entered and the destination is selected, a single request is sent which batches all calls that save the customer details and also retrieve the fare information.