So I am kinda of a newbie on this, so bear with me. I have have found some javascript code that I can use for login credentials to logon to our BI application (BI 4.2 SP 7). But even though the code appears to work. I have not been able to figure out how to extract the logon token so that I can use it with OpenDocument.
The strange part is the header for the response appears to be blank (the response is there). I do see a session in the CMC. Below is the code I am using. Any insight on this would be appreciated.
var invocation = new XMLHttpRequest();
var url = ‘http://host:8080/biprws/logon/long’;
var body = “<?xml version=\"1.0\"?><attrs xmlns=“http://www.sap.com/rws/bip”><attr name=“password” type=“string”>password<attr name=“clientType” type=“string”><attr name=“auth” type=“string” possibilities=“secEnterprise,secLDAP,secWinAD,secSAPR3”>secEnterprise<attr name=“userName” type=“string”>username”;
var xmlDoc = null;
var response;
var logonToken;
invocation.open(“POST”,url);
invocation.setRequestHeader(“X-PINGARUNER”, “pingpong”);
invocation.setRequestHeader(“Content-Type”, “application/xml”);
invocation.setRequestHeader(“Accept”, “application/xml”);
invocation.send(body);
invocation.onreadystatechange = function() {
if (invocation.readyState == 4 && invocation.status == 200) {
console.log("Response Text " + invocation.response);
console.log("Status " + invocation.status);
}
}
kevlray (BOB member since 2010-06-23)