Skip to content

Instantly share code, notes, and snippets.

@FoamValue
Last active August 29, 2015 13:59
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/10987108 to your computer and use it in GitHub Desktop.
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
/**
* @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