(1)通过配置应用程序调用rest服务 年编写java类型的应用程序,在java程序中调用rest服务 (2)以web服务的形式调用rest服务 此种方式对rest服务的声明有一定要求,声明方式如下所示,仅供参考: @Mapping("/rest/getUserInfo") public Renderer cnkeet() throws Exception { ActionContext ac=ActionContext.getActionContext(); HttpServletRequesthrq=ac.getHttpServletRequest();Stringid=hrq.getParameter(“id”); JSONObject object=new JSONObject(); object.put(“id”, id); return new PlainRenderer(object.toString()); } 此种声明方式需要通过request获取参数值】 注:如果rest服务声明为如下形式 @Mapping("/rest/getUserInfo/$1/$2") public Renderer getUserInfo(String id) throws Exception { } 工作流在调用rest服务时,url为http://ip:port/context/rest/getUserInfo?t=""&n="" 。与rest声明不符,调用失败, 导致调用rest服务失败。具体可参考东软平台产品官网,东软官网