on 12-20-2012 10:20 PM
Below is a javascript snippet where I use the runner to call a transaction as an http request. This works fine in MII version 12.1.9.116
In trying to run this same code in version 12.2.4.92 I get an "Access is denied" error.
I tried adding the XacuteLoginName and XacuteLoginPassword parameters and that did not change anything.
I can type type the http runner statement directly into the browser and it returns the xml just fine, so I don't see how it could be a database security issue.
Has anyone had a problem like this?
var vLabelxmlhttp;
var vLabelxmlDoc;
var vLabelQueryURL = "http://"+vMiiServerName+":50000/XMII/Runner?Transaction=DamperMES/CrystalTesting/QueryForReportsTransaction&
pOrderNumber="+vProductionOrder+"&OutputParameter=pReportsOutput"
//var vLabelQueryURL = "http://"+vMiiServerName+":50000/XMII/Runner?Transaction=DamperMES/CrystalTesting/QueryForReportsTransaction&
pOrderNumber="+vProductionOrder+"&OutputParameter=pReportsOutput&XacuteLoginName=*****&XacuteLoginPassword=******"
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
vLabelxmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
vLabelxmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
vLabelxmlhttp.onreadystatechange=function()
{
if (vLabelxmlhttp.readyState==4 && vLabelxmlhttp.status==200)
{
// document.getElementById('servletDiv').innerHTML=xmlhttp.responseText;
}
}
vLabelxmlhttp.open("GET",vLabelQueryURL,false);
vLabelxmlhttp.send();
vLabelxmlDoc=vLabelxmlhttp.responseXML;
do
Hello Paul, this should be working fine, both on 12.1 and 12.2.
But can you try using j_username and j_password instead of Xacute Login?
Cheers,
Arnaud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but I just found my problem.
I was in the workbench and just happened to see the root had "miisandbox.greenhecksap.com" instead of just "miisandbox" like in our develop workbench. Once I put in the full path, it works just fine. I guess it thru me off that I didn't have to put in the full path when I was just typing it into the browser.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.