JavaScript를 정적 HTML에 포함시키는 경우 MicrosoftAjax.js를 사용하여 ASMX 웹 서비스를 호출하는 적절한 방법은 무엇입니까?MicrosoftAjax.js, SOAP 웹 서비스 및 정적 HTML
내가 지금까지 가지고 :
<html>
<head>
<title>Testing</title>
<script type="text/javascript" src="scripts/MicrosoftAjax.js"></script>
<script type="text/javascript">
function testCallSoap() {
// in here I want to call the default HelloWorld() method
// it is located at ~/MyTestService.asmx
}
</script>
</head>
<body>
<div>
<span onclick="testCallSoap();">test</span><br />
</div>
</body>
</html>
을 나는 당신이 "ASMX 웹 서비스" –
주를 의미 생각 : 또한 InfinitiesLoop의 대답을 읽어라. – BuddyJoe