
hi,
Here is my Code :-
package hello;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;
@ WebService
public class CircleFunctions
{
public double getArea(double r)
{
return java.lang.Math.PI * (r * r);
}
public double getCircumference(double r)
{
return 2 * java.lang.Math.PI * r;
}
public static void main(String[] args) {
Endpoint.publish(
"http://localhost:8080/WebServiceExample/circlefunctions",
new CircleFunctions());
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.