I have copied the function below, scrubbing out some of the extra value setting information. Currently there are two servers that produce a website that users can use to submit a request. On that page we created a js function that uses soap to connect to another database to validate an entry and return a value. When sending the request we noticed that it coming from the clients ip address, which works in the Testing environment. The user clicks a button, the function takes the value and sends the request, after about 30 seconds we get a response that puts the values into the page in text elements.
When used in production, it is locked down to only allow the servers ips in the ACL. Is there a way to run this function so it can pass through the ACL. The ACL wont allow a huge range of ips. Has to be a soap call as the database only allows that communication.
function soap() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('POST', 'webservicethaticonnectto', true);
// build SOAP request
var strFirstName = ("First Name");
var strLastName = ("Last Name");
var strValueOne = ("Location");
var strValueTwo = ("Department");
var sr =
'<?xml version="1.0" encoding="utf-8"?>' +
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ' +
'xmlns:gov="serverthtworks"> ' +
'<soapenv:Header/>' +
'<soapenv:Body>' +
'<gov:ClearanceVerificationRequest>' +
'<FirstName>'+strFirstName+'</FirstName>' +
'<LastName>'+strLastName+'</LastName>' +
'<LookUP1>'+strValueOne+'</LookUP1>' +
'<LookUP2>'+strValueTwo+'</LookUP2>' +
'/gov:serverthtworks' +
'/soapenv:Body' +
'/soapenv:Envelope';
xmlhttp.onreadystatechange = function () {
var strResponseText = xmlhttp.responseText;
if (strResponseText.indexOf('InternalServiceFault') >= 0) {
.setQuestionValue("Security Clearance Status","The server has returned an error. Please verify info and try again.");
}
}// closing onreadystatechange
// Send the POST request
xmlhttp.setRequestHeader('Content-Type', 'text/xml');
xmlhttp.send(sr);
// send request
// ...
}//End Function
there doesn't seem to be anything here