Creating a Custom RA application using EJBCA Web Services and Java
The easiest way to write a custom WS client for EJBCA is to base it on the client included in EJBCA, which can be built from the command line using
$ ant ejbcaws.client
Included in this client you'll find the ejbca-ws-client-gen JAR file, which includes all of the generated client side files.