Last active
August 29, 2015 13:59
-
-
Save FoamValue/10987108 to your computer and use it in GitHub Desktop.
Create the implementation of 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: MyServiceImpl.java | |
* @Package cn.live.ws.service.Impl | |
* @Description: TODO service 实现包 | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午3:59:03 | |
* @version V1.0 | |
*/ | |
package cn.live.ws.service.Impl; | |
import javax.jws.WebService; | |
import cn.live.ws.service.MyService; | |
/** | |
* @ClassName: MyServiceImpl | |
* @Description: TODO | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午3:59:03 | |
* | |
*/ | |
@WebService(endpointInterface = "cn.live.ws.service.MyService") | |
public class MyServiceImpl implements MyService { | |
/* | |
* (non-Javadoc) <p>Title: reverse</p> <p>Description: </p> | |
* | |
* @param value | |
* | |
* @return | |
* | |
* @see cn.live.ws.service.MyService#reverse(java.lang.String) | |
*/ | |
@Override | |
public String reverse(String value) { | |
if (value == null) | |
return null; | |
return new StringBuffer(value).reverse().toString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment