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
Included in this client you'll find the ejbca-ws-client-gen JAR file, which includes all of the generated client side files.