Shailesh
Shailesh

Reputation: 75

Where can we see the endpoint URL when we use @Webservice annotation

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

Answers (1)

Brian Ochs
Brian Ochs

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

Related Questions