cancel
Showing results for 
Search instead for 
Did you mean: 

Error with http request in MII12.2

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.