KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > interop > wsifserviceWrapped > InteropDocSvcTestCase


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

7
8 package interop.wsifserviceWrapped;
9
10 public class InteropDocSvcTestCase extends junit.framework.TestCase {
11     public InteropDocSvcTestCase(java.lang.String JavaDoc name) {
12         super(name);
13     }
14     public void test1interopDocPortSingleTag() {
15         interop.wsifserviceWrapped.Doc_TestPortType binding;
16         try {
17             binding = new interop.wsifserviceWrapped.InteropDocSvcLocator().getinteropDocPort();
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         try {
27             interop.wsifserviceWrapped.SingleTagResponse value = null;
28             value = binding.singleTag(new interop.wsifserviceWrapped.SingleTag_ElemType());
29         }
30         catch (java.rmi.RemoteException JavaDoc re) {
31             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
32         }
33     }
34
35     public void test2interopDocPortSimpleDocument() {
36         interop.wsifserviceWrapped.Doc_TestPortType binding;
37         try {
38             binding = new interop.wsifserviceWrapped.InteropDocSvcLocator().getinteropDocPort();
39         }
40         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
41             if(jre.getLinkedCause()!=null)
42                 jre.getLinkedCause().printStackTrace();
43             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
44         }
45         assertTrue("binding is null", binding != null);
46
47         try {
48             interop.wsifserviceWrapped.SimpleDocumentResponse value = null;
49             value = binding.simpleDocument(new interop.wsifserviceWrapped.SimpleDocument_ElemType());
50         }
51         catch (java.rmi.RemoteException JavaDoc re) {
52             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
53         }
54     }
55
56     public void test3interopDocPortComplexDocument() {
57         interop.wsifserviceWrapped.Doc_TestPortType binding;
58         try {
59             binding = new interop.wsifserviceWrapped.InteropDocSvcLocator().getinteropDocPort();
60         }
61         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
62             if(jre.getLinkedCause()!=null)
63                 jre.getLinkedCause().printStackTrace();
64             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
65         }
66         assertTrue("binding is null", binding != null);
67
68         try {
69             interop.wsifserviceWrapped.ComplexDocumentResponse value = null;
70             value = binding.complexDocument(new interop.wsifserviceWrapped.ComplexDocument_ElemType());
71         }
72         catch (java.rmi.RemoteException JavaDoc re) {
73             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
74         }
75     }
76
77 }
78
Popular Tags