I found the answer.
First, get or create your CSClient
. You can use the examples provided in the cssdk/samples. I tweaked one so that I captured the CSClient
in the method getClientForCurrentUser()
. Watch out for SOAP vs Java connections. In development, I was using a SOAP connection and for the make_toolkit
build, the Java connection was required for our purposes.
Check the following snippet. The request CSClient
is captured in the static variable client
.
CSSimpleFile sourceFile = (CSSimpleFile)client.getFile(new CSVPath(XSLTExtensionContext.getContext().getOutputDirectory().toString() + "/" + XSLTExtensionContext.getContext().getOutputFileName()));