2
* GatewayServiceTestCase.java
4
* This file was auto-generated from WSDL
5
* by the Apache Axis WSDL2Java emitter.
8
package test.wsdl.gateway;
10
public class GatewayServiceTestCase extends junit.framework.TestCase {
11
public GatewayServiceTestCase(java.lang.String name) {
14
public void test1GatewayTest1() throws Exception {
15
test.wsdl.gateway.Gateway binding;
17
binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
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);
24
assertTrue("binding is null", binding != null);
27
test.wsdl.gateway.MyClass myClass = new test.wsdl.gateway.MyClass();
28
myClass.setValues(new String[][]{{"hello"}});
29
java.lang.String value = null;
30
value = binding.test1(myClass);
31
// TBD - validate results
34
public void test2GatewayTest2() throws Exception {
35
test.wsdl.gateway.Gateway binding;
37
binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
39
catch (javax.xml.rpc.ServiceException jre) {
40
if(jre.getLinkedCause()!=null)
41
jre.getLinkedCause().printStackTrace();
42
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
44
assertTrue("binding is null", binding != null);
47
test.wsdl.gateway.MyClass response = null;
48
response = binding.test2();
49
assertTrue(response.getValues()!=null);
50
System.out.println("Response cell 1,1="+response.getValues()[1][1]);
53
public void test3GatewayTest3() throws Exception {
54
test.wsdl.gateway.Gateway binding;
56
binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
58
catch (javax.xml.rpc.ServiceException jre) {
59
if(jre.getLinkedCause()!=null)
60
jre.getLinkedCause().printStackTrace();
61
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
63
assertTrue("binding is null", binding != null);
66
java.lang.String[][] value = null;
67
value = binding.test3();
68
// TBD - validate results
71
public void test4GatewayTest4() throws Exception {
72
test.wsdl.gateway.Gateway binding;
74
binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
76
catch (javax.xml.rpc.ServiceException jre) {
77
if(jre.getLinkedCause()!=null)
78
jre.getLinkedCause().printStackTrace();
79
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
81
assertTrue("binding is null", binding != null);
84
java.lang.String value = null;
85
value = binding.test4(new java.lang.String[0][0]);
86
// TBD - validate results