KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > datatypes > DataTypes_BindingImpl


1 /**
2  * DataTypesSoapImpl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis Wsdl2java emitter.
6  */

7
8 package test.wsdl.datatypes;
9
10 public class DataTypes_BindingImpl implements DataTypes_Port {
11     public java.lang.String JavaDoc sayHello() throws java.rmi.RemoteException JavaDoc {
12         return "Hello World!";
13     }
14
15     public java.lang.String JavaDoc sayHelloName(java.lang.String JavaDoc name) throws java.rmi.RemoteException JavaDoc {
16         return "Hello " + name;
17     }
18
19     public ArrayOfInt getIntArray() throws java.rmi.RemoteException JavaDoc {
20         int[] a = new int[5];
21         for (int i=0; i<5; i++)
22             a[i] = i*10;
23         ArrayOfInt array = new ArrayOfInt();
24         array.set_int(a);
25         return array;
26     }
27
28     public Mode getMode() throws java.rmi.RemoteException JavaDoc {
29         return new Mode(Mode._Off);
30     }
31
32     public Order getOrder() throws java.rmi.RemoteException JavaDoc {
33         Order myOrder = new Order();
34
35          myOrder.setPrice(34.5);
36          myOrder.setOrderID(323232);
37
38          return myOrder;
39     }
40
41     public ArrayOfOrder getOrders() throws java.rmi.RemoteException JavaDoc {
42         Order [] myOrders = new Order[2];
43
44         myOrders[0] = new Order();
45         myOrders[0].setPrice(34.5);
46         myOrders[0].setOrderID(323232);
47         myOrders[1] = new Order();
48         myOrders[1].setPrice(99.4);
49         myOrders[1].setOrderID(645645);
50         ArrayOfOrder array = new ArrayOfOrder();
51         array.setOrder(myOrders);
52         return array;
53     }
54
55     public java.lang.String JavaDoc[] getSimpleList(java.lang.String JavaDoc[] inputList) throws java.rmi.RemoteException JavaDoc {
56         java.lang.String JavaDoc[] outputList;
57         if (inputList == null) {
58             outputList = null;
59         }
60         else {
61             outputList = new java.lang.String JavaDoc[inputList.length];
62             for (int i = 0; i < inputList.length; i++) {
63                 outputList[i] = inputList[i] + "_response";
64             }
65         }
66
67         return outputList;
68     }
69
70     public test.wsdl.datatypes.UsageType getUsageType() throws java.rmi.RemoteException JavaDoc {
71     return new test.wsdl.datatypes.UsageType(test.wsdl.datatypes.UsageType._value1);
72     }
73 }
74
Popular Tags