Main.java 280 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 package com.xiniunet.web.service; import javax.xml.ws.Endpoint; public class Main { public Main() { Endpoint.publish("http://192.168.20.194:8080/railway/Service/EventService", new EventService()); System.out.println("WebService发布成功!"); } }