接口定义默认参数In0、In1...不太友好。
修改方法:
添加annotation:
@WebService
public interface Iupward {
@WebMethod
@WebResult(name="result")
public String example(@WebParam(name="message")String message);
@WebMethod
@WebResult(name="result")
public int pushMOInfo(@WebParam(name="infotype")String infotype,
@WebParam(name="mobile")String mobile,
@WebParam(name="content")String content,
@WebParam(name="msgtime")String msgtime,
@WebParam(name="note")String note);
@WebMethod
@WebResult(name="result")
public int pushMOInfos(@WebParam(name="jsonObj")String jsonObj);
}
services.xml加
<serviceFactory>jsr181</serviceFactory>
<service>
<name>ApplySheetService</name>
<serviceClass>sjck.service.IApplySheetService</serviceClass>
<implementationClass>
sjck.service.ApplySheetServiceImpl
</implementationClass>
<serviceFactory>jsr181</serviceFactory>
<style>wrapped</style>
<use>literal</use>
<scope>application</scope>
</service>