1 7 8 package test.wsdl.polymorphism; 9 10 public class PolymorphismTestSoapImpl implements test.wsdl.polymorphism.PolymorphismTest_PortType{ 11 public static final String B_TEXT = "this is my B field"; 12 public static final String A_TEXT = "this is my A field"; 13 14 public test.wsdl.polymorphism.A getBAsA(boolean sendC) 15 throws java.rmi.RemoteException { 16 if (sendC) { 17 C myC = new C(); 18 myC.setA(A_TEXT); 19 return myC; 20 } else { 21 B myB = new B(); 22 myB.setB(B_TEXT); 23 myB.setA(A_TEXT); 24 return myB; 25 } 26 } 27 28 } 29 | Popular Tags |