Hi,
This is what I use to test an external web service from plain
ASP. You can use this to test your coldfusion web service as well.
I currently have an issue calling my own coldfusion web service so
let me know how you get on. Hope this helps.
Edwin.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Strict//EN">
<html lang="en">
<head>
<title>Using the XML HTTP Request object</title>
<script src="xmlhttp.js" type="text/javascript">
xmlhttp=false
</script>
</head>
<body>
<h1>Using the XML HTTP Request object</h1>
<script type="text/javascript">
if (xmlhttp) {
document.write('<p class="example"><a
href="/2002/1/asyncget.html" onclick="example1();return
false;">Try the example.</a></p>')
}
function example1() {
xmlhttp.open("POST", "
http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.setRequestHeader("Man", "POST
/websamples.countryinfo/CountryInfoService.wso HTTP/1.1")
xmlhttp.setRequestHeader("MessageType", "CALL")
xmlhttp.setRequestHeader("Content-Type", "text/xml")
xmlhttp.send("<?xml version='1.0'
encoding='UTF-8'?>"+"\n\n"+"<soap:Envelope"+
' xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"'+
' xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"'+
' xmlns:xsd="
http://www.w3.org/2001/XMLSchema">'+
' <soap:Body><CountryCurrency'+
' xmlns="
http://www.oorsprong.org/websamples.countryinfo"'+
' soap:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">'+
' <sCountryISOCode
xsi:type="xsd:string">NL</sCountryISOCode>'+
' </CountryCurrency>'+
' </soap:Body></soap:Envelope>')
}
</script>
</body>
</html>