I have a webservice
which will return a value. Here my requirement is, I need to call that webservice
from an index.html
page, that page have an html submit button. On that button click I am calling a JavaScript.
From there I want to call the web method. how can I achieve this.
My webservice is "localhost/ws/service.asmx";
and web method is HelloWorld
<input type="button" value="Submit" id="btn_submit" onclick ="return fun()">
function fun() {
// here I want to call the "helloworld" method.
return true;
}