xfire下自定义参数

来源:互联网 发布:2017阿里大数据平台 编辑:程序博客网 时间:2024/05/17 23:01

接口定义默认参数In0、In1...不太友好。
修改方法:
添加annotation:

@WebServicepublic 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>



原创粉丝点击