Skip to content

Instantly share code, notes, and snippets.

@FoamValue
Created April 17, 2014 14:17
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/10986876 to your computer and use it in GitHub Desktop.
Save FoamValue/10986876 to your computer and use it in GitHub Desktop.
Create the Web service - Web Services in Java using Maven
/**
* @Title: MyService.java
* @Package cn.live.ws.service
* @Description: TODO service 包
* @author FOAMVALUE FOAMVALUE@LIVE.CN
* @date 2014年4月16日 下午2:34:39
* @version V1.0
*/
package cn.live.ws.service;
import javax.jws.WebMethod;
import javax.jws.WebService;
/**
* @ClassName: MyService
* @Description: TODO A service endpoint interface (SEI) is a Java interface
* that declares the methods that a client can invoke on the
* service.
* @author FOAMVALUE FOAMVALUE@LIVE.CN
* @date 2014年4月16日 下午2:34:39
*
*/
@WebService
public interface MyService {
/**
* @Title: reverse
* @Description: As explained it returns a revesed string according
* to the value provided. The reverse method is tagged with
* the a @WebMethod annotation to mark the method as exposed
* as a Web Service operation.
* @param value
* @return String
* @throws
*/
@WebMethod
String reverse(String value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment