Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…group_id=168953&atid=848534

XMLA driver is now SSAS 2k compliant... i think. We need someone to test it.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@273 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Jul 28, 2009
1 parent ff13ba2 commit 8974576
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ public byte[] getResponse(URL url, String request)
getEncodingCharsetName()
.concat(";q=1"));

// Some servers expect a SOAPAction header.
// TODO There is bound to be a better way to do this.
if (request.contains(
"<Discover xmlns=\"urn:schemas-microsoft-com:xml-analysis\""))
{
urlConnection.setRequestProperty(
"SOAPAction",
"urn:schemas-microsoft-com:xml-analysis:Discover");
} else if (request.contains(
"<Execute xmlns=\"urn:schemas-microsoft-com:xml-analysis\""))
{
urlConnection.setRequestProperty(
"SOAPAction",
"urn:schemas-microsoft-com:xml-analysis:Execute");
}

// Encode credentials for basic authentication
if (url.getUserInfo() != null) {
String encoding =
Expand Down

0 comments on commit 8974576

Please sign in to comment.