服務(wù)已經(jīng)生成了@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調(diào)我的sayHello方法
webservice 發(fā)布后怎么能通過(guò)postman來(lái)調(diào)用?
達(dá)令說(shuō)
2019-02-26 19:57:57