KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > anytype > AnyServiceServiceTestCase


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

7
8 package test.wsdl.anytype;
9
10 public class AnyServiceServiceTestCase extends junit.framework.TestCase {
11     public AnyServiceServiceTestCase(java.lang.String JavaDoc name) {
12         super(name);
13     }
14     public void test1AnyServiceRun() throws Exception JavaDoc {
15         test.wsdl.anytype.AnyService binding;
16         try {
17             binding = new test.wsdl.anytype.AnyServiceServiceLocator().getAnyService();
18         }
19         catch (javax.xml.rpc.ServiceException JavaDoc 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         // Test operation
27
java.lang.Object JavaDoc value = null;
28         value = binding.run();
29         System.out.println("Got:" + value);
30     }
31
32 }
33
Popular Tags