Java6下开发WebService
Java6上开发WebServiceJava6上开发WebService ??6)???? OK,大功告成。本文出自 “王杰瑞的技术博客” 博客,转
Java6上开发WebService
Java6上开发WebService
??6)???? OK,大功告成。
本文出自 “王杰瑞的技术博客” 博客,转载请与作者联系!
package jerry.ws;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;
@WebService
public class Java6WS {
??public String doSomething() {
????return "这是基于Java6的WebService";
??}
??public static void main(String[] args) {
????String url="http://localhost:8080/AxisWS/jerry.ws.Java6WS";
????Endpoint.publish(url,new Java6WS());
??}
}