服务已经生成了@WebServicepublic class HelloWorld { @WebMethod
public String sayHello(String str){
System.out.println("get Message..."); String result = "Hello World, "+str; return result;
} public static void main(String[] args) {
System.out.println("server is running"); String address="http://localhost:8888/HelloWorld"; Object implementor =new HelloWorld();
Endpoint.publish(address, implementor);
}}怎么样才能在postman调我的sayHello方法
添加回答
举报
0/150
提交
取消