往致远OA发提醒的代码

发送代码

SendContentToOA(loginNames, contents, urls);

loginNames 是发往的用户名,contents发送的内容,urls是具体内容显示的连接

具体实现代码

private String SendContentToOA(String[] loginNames, String content, String[] urls) throws AxisFault {
String returnInfo = "";
     //  使用RPC方式调用WebService       
        RPCServiceClient serviceClient = new RPCServiceClient();
        Options options = serviceClient.getOptions();
        //  指定调用WebService的URL
        String ip = AmsGlobals.getAmsProperty("infoip").trim();
        if(ip.equals("")) {
        logger.error("未找到发送消息的地址");
        return null;
        }
....

全部代码可以到:
http://www.xszlo.com/article/2012-11-06/7495.html 查看

猜你喜欢

转载自sbabzc.iteye.com/blog/1806600