This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public QueryService_pkg.QueryResult queryFirst(QueryService_pkg.QueryRequest request) throws java.rmi.RemoteException { | |
lotus.domino.websvc.client.Call _call = createCall("queryFirst"); | |
_call = createSessionHeader(_call); | |
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {request}); | |
this.queryHeader = _call.getResponseMessage().getSOAPEnvelope().getHeaderByName(new QueryServiceLocator().getServiceName().getNamespaceURI(), "QueryHeaderValue"); | |
return (QueryService_pkg.QueryResult) _call.convert(_resp, QueryService_pkg.QueryResult.class); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |