Skip to content

Instantly share code, notes, and snippets.

@pstoellberger
Created July 6, 2012 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstoellberger/3060153 to your computer and use it in GitHub Desktop.
Save pstoellberger/3060153 to your computer and use it in GitHub Desktop.
Code Snippet: Using Saiku via HttpClient + Java
The following code demonstrates how to interact with the saiku webapp backend via Java.
You can check it out here: https://gist.github.com/3060118
Basically it creates a http session (important for authentication) and then executes the following steps:
1. authenticate
2. check if authentication was successful
3. fetch a query called "test.saiku"
4. post the xml of that query to the workspace
5. execute the query
6. execute the drillthrough on a returned result of the query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment