Reputation: 75
I am using @Webservice annotation to generate the jax-ws webservice.Below is the code which I am using.This is deployed on Weblogic app server. But I am not able to figure out what would be the endpoint URL? Please help.
@WebService
public class Calculator {
public Calculator(){
}
@WebMethod
public double sum(int a, int b){
return a+b;
}
}
Upvotes: 1
Views: 266
Reputation: 1119
The endpoint would be the application context root plus the class name since you did not specify any parameters in the @WebService annotation.
http://servername:port/context-root/Calculator?wsdl
Upvotes: 1