现在的位置: 首页 > 综合 > 正文

JSR181 (web service 元数据) 的一段话

2018年03月19日 ⁄ 综合 ⁄ 共 574字 ⁄ 字号 评论关闭

JSR-181 metadata describes declaratively how the logic of a service implementation bean
is exposed over networking protocols as a Web Service. The @WebService tag marks a
Java class as implementing a Web Service. @WebMethod tags identify the individual
methods of the Java class that are exposed externally as Web Service operations, as
illustrated in the following example. The example uses JSR-175 syntax and the

annotation type declarations defined in the javax.jws and javax.jws.soap packages.

import javax.jws.WebService;
import javax.jws.WebMethod;
@WebService
public class HelloWorldService
{
@WebMethod
public String helloWorld()
{
return "Hello World!";
}
}

抱歉!评论已关闭.