[英]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.我正在使用 @Webservice 注释来生成 jax-ws webservice。下面是我正在使用的代码。这是部署在 Weblogic 应用服务器上的。 But I am not able to figure out what would be the endpoint URL?
但我无法弄清楚端点 URL 是什么? Please help.
请帮忙。
@WebService
public class Calculator {
public Calculator(){
}
@WebMethod
public double sum(int a, int b){
return a+b;
}
}
The endpoint would be the application context root plus the class name since you did not specify any parameters in the @WebService annotation.端点将是应用程序上下文根加上类名,因为您没有在 @WebService 注释中指定任何参数。
http://servername:port/context-root/Calculator?wsdl http://servername:port/context-root/Calculator?wsdl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.