1 7 8 package test.wsdl.datatypes; 9 10 public class DataTypes_BindingImpl implements DataTypes_Port { 11 public java.lang.String sayHello() throws java.rmi.RemoteException { 12 return "Hello World!"; 13 } 14 15 public java.lang.String sayHelloName(java.lang.String name) throws java.rmi.RemoteException { 16 return "Hello " + name; 17 } 18 19 public ArrayOfInt getIntArray() throws java.rmi.RemoteException { 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 { 29 return new Mode(Mode._Off); 30 } 31 32 public Order getOrder() throws java.rmi.RemoteException { 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 { 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 [] getSimpleList(java.lang.String [] inputList) throws java.rmi.RemoteException { 56 java.lang.String [] outputList; 57 if (inputList == null) { 58 outputList = null; 59 } 60 else { 61 outputList = new java.lang.String [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 { 71 return new test.wsdl.datatypes.UsageType(test.wsdl.datatypes.UsageType._value1); 72 } 73 } 74 | Popular Tags |