Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Looking for a JavaScript coding example that makes Integrity Web Service calls. I wrote a code (Attached) but am not able to update value in Integrity. Urgent help needed if anyone can.
<!DOCTYPE html>
<html>
<head>
<title>SOAP JavaScript Client Test</title>
<script type="text/javascript">
function soap() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE) {
alert(xmlhttp.responseText);
}
}
xmlhttp.open('GET', 'http://blrmiespc-1233:7001/webservices/10/2/Integrity/?wsdl', true);
//xmlhttp.send(null);
// build SOAP request
var sr =
'<?xml version="1.0" encoding="utf-8"?>' +
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://webservice.mks.com/10/2/Integrity" xmlns:sch="http://webservice.mks.com/10/2/Integrity/schema">' +
'<soapenv:Header/>' +
'<soapenv:Body>' +
'<int:editItem>' +
'<arg0 sch:ItemId="11704">' +
'<sch:Username>lntuser</sch:Username>' +
'<sch:Password>lntlnt</sch:Password> ' +
'<sch:ItemField Name="Summary">' +
'<sch:shorttext>' +
'<sch:value>Changed from web Services.</sch:value>' +
'</sch:shorttext>' +
'</sch:ItemField>' +
'</arg0>' +
'</int:editItem>' +
'</soapenv:Body>' +
'</soapenv:Envelope>';
// Send the POST request
xmlhttp.setRequestHeader('Content-Type', 'text/xml');
xmlhttp.send(sr);
// send request
// ...
}
</script>
</head>
<body>
<form name="Demo" action="" method="post">
<div>
<input type="button" value="Soap" onclick="soap();" />
</div>
</form>
</body>
</html> <!-- typo -->
Solved! Go to Solution.
Icreated by own..... 🙂 and working perfectly....
Icreated by own..... 🙂 and working perfectly....