1
package IVR.client.ui;
2
3
import bea.jolt.JoltDefinition;
4
import bea.jolt.JoltMessage;
5
import bea.jolt.JoltRemoteService;
6
import bea.jolt.JoltSession;
7
import bea.jolt.JoltSessionAttributes;
8
import bea.jolt.JoltTransaction;
9
10
public 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

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63
