Skip to content

Instantly share code, notes, and snippets.

@lspellman
Created March 9, 2014 23:38
Show Gist options
  • Save lspellman/9456808 to your computer and use it in GitHub Desktop.
Save lspellman/9456808 to your computer and use it in GitHub Desktop.
private lotus.domino.websvc.client.Call createSessionHeader(lotus.domino.websvc.client.Call _call) {
try {
// Create soap header elements
String namespace = "urn.QueryService";
lotus.domino.axis.message.SOAPHeaderElement header = new lotus.domino.axis.message.SOAPHeaderElement(namespace, "SessionHeaderValue");
header.setMustUnderstand(false);
SOAPElement elemSystem = header.addChildElement("sessionID","","");
// check to see that we actually have the session id
logMsg = "checking sessionID: " + this.sessionID;
System.out.println(logMsg);
oli.logEvent(logMsg, OpenLogItem.SEVERITY_LOW, null);
elemSystem.addTextNode(this.sessionID);
_call.addHeader(header);
return _call;
} catch (Exception e) {
e.printStackTrace();
oli.logError(e);
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment