use of mondrian.xmla.impl.DefaultXmlaRequest in project mondrian by pentaho.
the class XmlaTest method executeRequest.
private Element executeRequest(Element requestElem) {
ByteArrayOutputStream resBuf = new ByteArrayOutputStream();
XmlaRequest request = new DefaultXmlaRequest(requestElem, null, null, null, null);
XmlaResponse response = new DefaultXmlaResponse(resBuf, "UTF-8", Enumeration.ResponseMimeType.SOAP);
handler.process(request, response);
return XmlaUtil.stream2Element(new ByteArrayInputStream(resBuf.toByteArray()));
}
Aggregations