jinfeng_wang

G-G-S,D-D-U!

BlogJava 首页 新随笔 联系 聚合 管理
  400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
 1package IVR.client.ui;
 2
 3import bea.jolt.JoltDefinition;
 4import bea.jolt.JoltMessage;
 5import bea.jolt.JoltRemoteService;
 6import bea.jolt.JoltSession;
 7import bea.jolt.JoltSessionAttributes;
 8import bea.jolt.JoltTransaction;
 9
10public class test {
11
12    /**
13     * @param args
14     */

15    public static void main(String[] args) {
16        JoltSessionAttributes sattr = null;
17        JoltRemoteService joltServices = null;
18        JoltTransaction trans = null;
19        String userName = "";
20        String userPassword = "";
21        String appPassword = "";
22        String userRole = "";
23        String outstr;
24        sattr = new JoltSessionAttributes();
25
26        sattr.setString(sattr.APPADDRESS, "//16.162.93.226:8327");
27
28        sattr.setInt(sattr.IDLETIMEOUT, 300);
29
30        bea.jolt.JoltSession session = new JoltSession(sattr, userName,
31                userRole, userPassword, appPassword);
32
33        joltServices = new JoltRemoteService("SwtNnsy", session);
34
35       
36
37        joltServices.setStringItem("sw01_autelno",0,  "autelno");
38        joltServices.setStringItem("sw01_custcdv",0,  "custcdv"); 
39        joltServices.setStringItem("sw01_codenov",0,  "nov");
40        joltServices.setStringItem("sw01_certsvckbn",0,  "svc");
41        joltServices.setStringItem("sw01_ngcount"0"1");
42        joltServices.setStringItem("sw01_ngpassword1",0,  "ngpassword1");
43        joltServices.setStringItem("sw01_ngpassword2"0"ngpassword2");
44        joltServices.setStringItem("sw01_ngpassword3"0"ngpassword3");
45        
46        
47        
48        
49        joltServices.call(null);
50
51        JoltDefinition jd = joltServices.getDefinition();
52        JoltMessage jm = joltServices.getOutputs();
53        String[] strPar = jm.toString().split("\":");
54        for (int i = 0; i < strPar.length; i++{
55            System.out.println("item:" + strPar[i]);
56        }

57
58        session.endSession();
59
60    }

61
62}

63
posted on 2010-02-26 09:17 jinfeng_wang 阅读(1132) 评论(0)  编辑  收藏 所属分类: javatuxedo

只有注册用户登录后才能发表评论。


网站导航: