package soupTest;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class Main {
	
	public static void main(String[] args) {
		System.out.println("server is running");
		String address = "http://localhost:9000/Main";
		Object implementor = new Main();
		Endpoint.publish(address, implementor);
		
	}
	@WebMethod
	public String sayHello(String str) {
		
		System.out.println("get message...");
		String result = "hello" + str;
		return result;
	}
}

 

相关文章:

  • 2021-05-20
  • 2021-08-20
  • 2021-05-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2021-11-26
  • 2021-07-20
  • 2022-12-23
  • 2021-05-19
相关资源
相似解决方案