File: DataTypes_BindingImpl.java

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 (73 lines) | stat: -rw-r--r-- 2,134 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
/**
 * DataTypesSoapImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

package test.wsdl.datatypes;

public class DataTypes_BindingImpl implements DataTypes_PortType {
    public java.lang.String sayHello() throws java.rmi.RemoteException {
        return "Hello World!";
    }

    public java.lang.String sayHelloName(java.lang.String name) throws java.rmi.RemoteException {
        return "Hello " + name;
    }

    public ArrayOfInt getIntArray() throws java.rmi.RemoteException {
        int[] a = new int[5];
        for (int i=0; i<5; i++)
            a[i] = i*10;
        ArrayOfInt array = new ArrayOfInt();
        array.set_int(a);
        return array;
    }

    public Mode getMode() throws java.rmi.RemoteException {
        return new Mode(Mode._Off);
    }

    public Order getOrder() throws java.rmi.RemoteException {
        Order myOrder = new Order();

         myOrder.setPrice(34.5);
         myOrder.setOrderID(323232);

         return myOrder;
    }

    public ArrayOfOrder getOrders() throws java.rmi.RemoteException {
        Order [] myOrders = new Order[2];

        myOrders[0] = new Order();
        myOrders[0].setPrice(34.5);
        myOrders[0].setOrderID(323232);
        myOrders[1] = new Order();
        myOrders[1].setPrice(99.4);
        myOrders[1].setOrderID(645645);
        ArrayOfOrder array = new ArrayOfOrder();
        array.setOrder(myOrders);
        return array;
    }

    public java.lang.String[] getSimpleList(java.lang.String[] inputList) throws java.rmi.RemoteException {
        java.lang.String[] outputList;
        if (inputList == null) {
            outputList = null;
        }
        else {
            outputList = new java.lang.String[inputList.length];
            for (int i = 0; i < inputList.length; i++) {
                outputList[i] = inputList[i] + "_response";
            }
        }

        return outputList;
    }

    public test.wsdl.datatypes.UsageType getUsageType() throws java.rmi.RemoteException { 
	return new test.wsdl.datatypes.UsageType(test.wsdl.datatypes.UsageType._value1);
    }
}