File: AutoTypesTest.jws

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (88 lines) | stat: -rw-r--r-- 2,318 bytes parent folder | download | duplicates (10)
1
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Date;

import test.functional.SimpleBean;
import test.functional.NestedBean;

/* based upon GlobalTypesTest.jws */
public class AutoTypesTest {

    public String ping() {
        return "Pong";
    }

    public SimpleBean getBean() throws RemoteException {       
        return new SimpleBean();
    }

    public void setBean(SimpleBean bean) throws RemoteException {
        // deliberately blank
    }

    public SimpleBean echoBean(SimpleBean bean) throws RemoteException {
        return bean;
    }

    public SimpleBean[] getBeanArray(int count) throws RemoteException {
        SimpleBean[] result = new SimpleBean[count];
        for (int i = 0; i < count; i++) {
            result[i] = new SimpleBean();
            result[i].setIntValue(i);
        }
        return result;
    }

    public void setBeanArray(SimpleBean[] beans) throws RemoteException {
        // deliberately blank
    }

    public SimpleBean[] echoBeanArray(SimpleBean[] beans) throws RemoteException {
        return beans;
    }

    public ArrayList getBeanArrayList(int count) throws RemoteException {
        ArrayList result = new ArrayList();

        for (int i = 0; i < count; i++) {
            SimpleBean bean = new SimpleBean();
            bean.setIntValue(i);
            result.add(bean);
        }

        return result;
    }

    public int setBeanArrayList(ArrayList beansArr) throws RemoteException {
        return beansArr.size();
    }

    public NestedBean getNestedBean() throws RemoteException {
        NestedBean result = new NestedBean();
        result.setStartDate(new Date());
        result.setTestString("some test string " + result.getStartDate()); //$NON-NLS-1$
        SimpleBean[] sba = new SimpleBean[3];

        sba[0] = new SimpleBean();
        sba[1] = new SimpleBean();
        sba[2] = new SimpleBean();

        sba[0].setIntValue(1);
        sba[1].setIntValue(2);
        sba[2].setIntValue(3);

        result.setSimpleBeanList(sba);

        return result;
    }

    public void setNestedBean(NestedBean value) throws RemoteException {
        // deliberately left blank
        
    }

    public NestedBean echoNestedBean(NestedBean value) throws RemoteException {
        return value;
    }

}