applicationContext.xml
<!-- 按合同申请软件申请单WebService -->
<jaxws:endpoint id="poApplyWS" implementor="#poApplyWsImpl"
address="/poApplyWS">
<jaxws:inInterceptors>
<ref bean="logInterceptor" />
<ref bean="authInterceptor" />
</jaxws:inInterceptors>
</jaxws:endpoint>
PoApplyWsImpl.java
/**
* 根据产品线、产品族、产品、审核人来查询所有.
* @param aJsonStr 客户端传递过来的aJsonStr转成的字符串
* @return 返回结果字符串
* @throws ApplicationException ApplicationException
*/
public String getSecondCheckerInfo(String aJsonStr)
throws ApplicationException
{
Map<String, Object> aMap = JsonUtil.jsonStringToMap(aJsonStr);
List<Map<String, Object>> aCheckerInfo = mPoApplySev.
getSecondCheckerInfo(aMap);
String resultAllJsonStr = JsonUtil.transferStringByList(aCheckerInfo);
int allRecords = mPoApplySev.getSecondCheckerTotalRecordsByidS(aMap);
JSONObject json = new JSONObject();
try
{
//存入记录总数
json.put("total_row", allRecords);
//存入记录列表
json.put("secondCheckerList", resultAllJsonStr);
}
catch (JSONException e)
{
e.printStackTrace();
}
return json.toString();
}