81,092
社区成员
发帖
与我相关
我的任务
分享
@WebService
public interface IHelloWorld {
public String getHellow( @WebParam(name="name") String name);
}
@WebService(endpointInterface="com.web.hellow.IHelloWorld",serviceName="Hellow")
public class HelloWorld implements IHelloWorld {
public String getHellow(String name) {
String str="你好,世界;你好,"+name;
return str;
}
}
public static void main(String[] args) {
String address="http://localhost:8000/hellow";
HelloWorld hellow = new HelloWorld();
Endpoint.publish(address, hellow);
}
@WebService(targetNamespace="http://aaa/")
public interface IHelloWorld {
public String getHellow( @WebParam(name="name") String name);
}
@WebService(endpointInterface="com.web.hellow.IHelloWorld",serviceName="Hellow",targetNamespace="http://aaa/")
public class HelloWorld implements IHelloWorld {
public String getHellow(String name) {
String str="你好,世界;你好,"+name;
return str;
}
}