1 7 8 package test.wsdl.wrapped_holders; 9 10 11 12 18 public class ThingImpl implements test.wsdl.wrapped_holders.Thing{ 19 public void find_aThing(String aThing, 20 test.wsdl.wrapped_holders.holders.AThingArrayHolder aThingUnbounded, 21 test.wsdl.wrapped_holders.holders.OtherDataArrayHolder otherDataUnbounded) 22 throws java.rmi.RemoteException { 23 String input = aThing; 25 if (input == null || !input.equals("This is a test")) { 26 String error = "Input argument did not match expected string, got: "; 27 error += input != null ? "'" + input + "'" : "NULL"; 28 error += " Expected: 'This is a test'"; 29 throw new java.rmi.RemoteException (error); 30 } 31 32 String [] things = new String [2]; 34 things[0] = new String ("Thing one"); 35 things[1] = new String ("Thing two"); 36 aThingUnbounded.value = things; 37 String [] others = new String [2]; 38 others[0] = new String ("Other 1"); 39 others[1] = new String ("Other 2"); 40 otherDataUnbounded.value = others; 41 } 42 43 } 44 | Popular Tags |