http://blog.csdn.net/yaerfeng/article/details/8352307
Example of WEBSERVICE quick start:
First define the interface:
- packagecom.whaty.platform.ws.server;
- /**
- * @className:IMyservice.java
- *@Desc:Definition: SEI service endpoint interface
- * @author:lizhuang
- * @createTime:2012-12-21 12:57:18 AM
- */
- // JAX-WS comment, which means java api xml for webservice. JDK comes with API in XML format webservice
- < span class="keyword" style="margin:0px; padding:0px; border:none; color:rgb(102,204,255); font-weight:bold; background-color:inherit">publicinterface IMyservice{
- intadd(inta,intb);
- intminus(< /span>int a,int B);
- }
< li style="margin:0px!important; padding:0px 3px 0px 10px!important; border-style:none none none solid; border-left-width:3px; border-left-color:rgb(153,153,153); list-style :decimal-leading-zero outside; color:rgb(255,153,153); line-height:18px; background-color:rgb(85,85,85)"> @WebService