1 7 8 package test.wsdl.anytype; 9 10 public class AnyServiceServiceTestCase extends junit.framework.TestCase { 11 public AnyServiceServiceTestCase(java.lang.String name) { 12 super(name); 13 } 14 public void test1AnyServiceRun() throws Exception { 15 test.wsdl.anytype.AnyService binding; 16 try { 17 binding = new test.wsdl.anytype.AnyServiceServiceLocator().getAnyService(); 18 } 19 catch (javax.xml.rpc.ServiceException jre) { 20 if(jre.getLinkedCause()!=null) 21 jre.getLinkedCause().printStackTrace(); 22 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 23 } 24 assertTrue("binding is null", binding != null); 25 26 java.lang.Object value = null; 28 value = binding.run(); 29 System.out.println("Got:" + value); 30 } 31 32 } 33 | Popular Tags |