01: /**
02: * InteropDocSvcTestCase.java
03: *
04: * This file was auto-generated from WSDL
05: * by the Apache Axis WSDL2Java emitter.
06: */package interop.wsifservice;
07:
08: public class InteropDocSvcTestCase extends junit.framework.TestCase {
09: public InteropDocSvcTestCase(java.lang.String name) {
10: super (name);
11: }
12:
13: public void test1interopDocPortSingleTag() {
14: interop.wsifservice.Doc_TestPortType binding;
15: try {
16: binding = new interop.wsifservice.InteropDocSvcLocator()
17: .getinteropDocPort();
18: } catch (javax.xml.rpc.ServiceException jre) {
19: if (jre.getLinkedCause() != null)
20: jre.getLinkedCause().printStackTrace();
21: throw new junit.framework.AssertionFailedError(
22: "JAX-RPC ServiceException caught: " + jre);
23: }
24: assertTrue("binding is null", binding != null);
25:
26: try {
27: interop.wsifservice.SingleTag_Type value = null;
28: value = binding
29: .singleTag(new interop.wsifservice.SingleTag_Type());
30: } catch (java.rmi.RemoteException re) {
31: throw new junit.framework.AssertionFailedError(
32: "Remote Exception caught: " + re);
33: }
34: }
35:
36: public void test2interopDocPortSimpleDocument() {
37: interop.wsifservice.Doc_TestPortType binding;
38: try {
39: binding = new interop.wsifservice.InteropDocSvcLocator()
40: .getinteropDocPort();
41: } catch (javax.xml.rpc.ServiceException jre) {
42: if (jre.getLinkedCause() != null)
43: jre.getLinkedCause().printStackTrace();
44: throw new junit.framework.AssertionFailedError(
45: "JAX-RPC ServiceException caught: " + jre);
46: }
47: assertTrue("binding is null", binding != null);
48:
49: try {
50: interop.wsifservice.SimpleDocument_Type value = null;
51: value = binding
52: .simpleDocument(new interop.wsifservice.SimpleDocument_Type());
53: } catch (java.rmi.RemoteException re) {
54: throw new junit.framework.AssertionFailedError(
55: "Remote Exception caught: " + re);
56: }
57: }
58:
59: public void test3interopDocPortComplexDocument() {
60: interop.wsifservice.Doc_TestPortType binding;
61: try {
62: binding = new interop.wsifservice.InteropDocSvcLocator()
63: .getinteropDocPort();
64: } catch (javax.xml.rpc.ServiceException jre) {
65: if (jre.getLinkedCause() != null)
66: jre.getLinkedCause().printStackTrace();
67: throw new junit.framework.AssertionFailedError(
68: "JAX-RPC ServiceException caught: " + jre);
69: }
70: assertTrue("binding is null", binding != null);
71:
72: try {
73: interop.wsifservice.ComplexDocument_Type value = null;
74: value = binding
75: .complexDocument(new interop.wsifservice.ComplexDocument_Type());
76: } catch (java.rmi.RemoteException re) {
77: throw new junit.framework.AssertionFailedError(
78: "Remote Exception caught: " + re);
79: }
80: }
81:
82: }
|