I am new to web services, and I need to call a specific method from my web service. I had created a web service using NetBeans IDE, and now I need to call that using JavaScript.
function validateForm(frm)
{
document.forms[0].action="http://localhost:8084/Web_Service_Example/CircleFunctions?wsdl"
document.forms[0].method="get"
document.forms[0].submit()
}
It is running properly on my local system.
Now I need to call the method of my web service
public class CircleFunctions {
public int sum()
{
int a = 20;
int b = 40;
int c = a+b;
return c;
}
}
How can I call the sum()
method of my CircleFunctions Class. And is it possible to send the parameter to the method?