Routing
This example shows how to use Handlers for Routing Web Service invokes.
Note: Due to CR100807, in WLS 8.1 "default" method is not be called
if there are no matching methods in the DD file.
Steps involved in writing this example:
- Write Server side routing handler -
RouterHandler.java
- Write the router DD file
web-services.xml
- Write ant build file to compile and build the service.
build.xml
- compile RouterHandler.java to output/WEB-INF/classes
- copy web-services.xml DD file in output/WEB-INF/ directory
- jar up output directory as a war file
- run clientgen on the WSDL file to generate the client jar
- compile the client side code
Main.java and
- deploy the applicaiton by copying the war file into the
applications directory of the server
- Follow the instructions here
to build, run and test the service.