Search in sources :

Example 1 with DefaultXmlaRequest

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()));
}
Also used : DefaultXmlaRequest(mondrian.xmla.impl.DefaultXmlaRequest) DefaultXmlaResponse(mondrian.xmla.impl.DefaultXmlaResponse) DefaultXmlaResponse(mondrian.xmla.impl.DefaultXmlaResponse) DefaultXmlaRequest(mondrian.xmla.impl.DefaultXmlaRequest)

Aggregations

DefaultXmlaRequest (mondrian.xmla.impl.DefaultXmlaRequest)1 DefaultXmlaResponse (mondrian.xmla.impl.DefaultXmlaResponse)1