Skip to content

Commit

Permalink
A bit of code to add the session ID into the server infos when parsin…
Browse files Browse the repository at this point in the history
…g the SOAP headers.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@508 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Feb 24, 2012
1 parent 803e11a commit 75f5545
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,8 @@ Element executeMetadataRequest(String request) throws OlapException {
}
assert envelope.getLocalName().equals("Envelope");
assert envelope.getNamespaceURI().equals(SOAP_NS);
Element header =
findChild(envelope, SOAP_NS, "Header");
Element body =
findChild(envelope, SOAP_NS, "Body");
Element fault =
Expand Down Expand Up @@ -889,6 +891,16 @@ Element executeMetadataRequest(String request) throws OlapException {
+ "Request was:\n"
+ request);
}
Element session =
findChild(header, XMLA_NS, "Session");
if (session != null) {
String sessionId =
session.getAttribute("SessionId");
if ("".equals(sessionId)) {
sessionId = null;
}
serverInfos.setSessionId(sessionId);
}
Element discoverResponse =
findChild(body, XMLA_NS, "DiscoverResponse");
Element returnElement =
Expand Down

0 comments on commit 75f5545

Please sign in to comment.