Skip to content

Instantly share code, notes, and snippets.

@FoamValue
Created April 17, 2014 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FoamValue/10987200 to your computer and use it in GitHub Desktop.
Save FoamValue/10987200 to your computer and use it in GitHub Desktop.
Publish the web service - Web Services in Java using Maven
/**
* @Title: Publisher.java
* @Package cn.live.ws.service
* @Description: TODO
* @author FOAMVALUE FOAMVALUE@LIVE.CN
* @date 2014年4月16日 下午4:21:59
* @version V1.0
*/
package cn.live.ws.service;
import javax.xml.ws.Endpoint;
import cn.live.ws.service.Impl.MyServiceImpl;
/**
* @ClassName: Publisher
* @Description: TODO
* @author FOAMVALUE FOAMVALUE@LIVE.CN
* @date 2014年4月16日 下午4:21:59
*
*/
public class Publisher {
public static void main(String[] args) {
Endpoint.publish("http://localhost:8080/WS/MyService", new MyServiceImpl());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment