Created
April 17, 2014 14:17
-
-
Save FoamValue/10986876 to your computer and use it in GitHub Desktop.
Create the Web service - Web Services in Java using Maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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