| 1 |
/** |
| 2 |
* ComplexTypeExtensionsServiceTestCase.java |
| 3 |
* |
| 4 |
* This file was auto-generated from WSDL |
| 5 |
* by the Apache Axis WSDL2Java emitter. |
| 6 |
*/ |
| 7 |
|
| 8 |
package test.wsdl.interop5.complextype; |
| 9 |
|
| 10 |
import java.net.URL; |
| 11 |
|
| 12 |
public class ComplexTypeExtensionsServiceTestCase extends junit.framework.TestCase { |
| 13 |
public static URL url = null; |
| 14 |
|
| 15 |
protected void setUp() throws Exception { |
| 16 |
if(url == null) { |
| 17 |
url = new URL(new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPortAddress()); |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
public static void main(String[] args) throws Exception { |
| 22 |
if (args.length == 1) { |
| 23 |
url = new URL(args[0]); |
| 24 |
} else { |
| 25 |
url = new URL(new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPortAddress()); |
| 26 |
} |
| 27 |
junit.textui.TestRunner.run(new junit.framework.TestSuite(ComplexTypeExtensionsServiceTestCase.class)); |
| 28 |
} // main |
| 29 |
|
| 30 |
public ComplexTypeExtensionsServiceTestCase(java.lang.String name) { |
| 31 |
super(name); |
| 32 |
} |
| 33 |
|
| 34 |
public void testComplexTypeExtensionsPortWSDL() throws Exception { |
| 35 |
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance(); |
| 36 |
java.net.URL url = new java.net.URL(new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPortAddress() + "?WSDL"); |
| 37 |
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getServiceName()); |
| 38 |
assertTrue(service != null); |
| 39 |
} |
| 40 |
|
| 41 |
public void test1ComplexTypeExtensionsPortEchoBaseType_1() throws Exception { |
| 42 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 43 |
try { |
| 44 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 45 |
} |
| 46 |
catch (javax.xml.rpc.ServiceException jre) { |
| 47 |
if(jre.getLinkedCause()!=null) |
| 48 |
jre.getLinkedCause().printStackTrace(); |
| 49 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 50 |
} |
| 51 |
assertTrue("binding is null", binding != null); |
| 52 |
|
| 53 |
// Test operation |
| 54 |
test.wsdl.interop5.complextype.types.BaseType input = new test.wsdl.interop5.complextype.types.BaseType(); |
| 55 |
input.setBaseTypeMember1("echoBaseType_1"); |
| 56 |
input.setBaseTypeMember2(1); |
| 57 |
test.wsdl.interop5.complextype.types.holders.BaseTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.BaseTypeHolder(input); |
| 58 |
binding.echoBaseType_1(inputHolder); |
| 59 |
test.wsdl.interop5.complextype.types.BaseType output = inputHolder.value; |
| 60 |
// TBD - validate results |
| 61 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 62 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 63 |
} |
| 64 |
|
| 65 |
public void test2ComplexTypeExtensionsPortEchoBaseType_2() throws Exception { |
| 66 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 67 |
try { |
| 68 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 69 |
} |
| 70 |
catch (javax.xml.rpc.ServiceException jre) { |
| 71 |
if(jre.getLinkedCause()!=null) |
| 72 |
jre.getLinkedCause().printStackTrace(); |
| 73 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 74 |
} |
| 75 |
assertTrue("binding is null", binding != null); |
| 76 |
|
| 77 |
// Test operation |
| 78 |
test.wsdl.interop5.complextype.types.L1DerivedType input = new test.wsdl.interop5.complextype.types.L1DerivedType(); |
| 79 |
input.setBaseTypeMember1("echoBaseType_2"); |
| 80 |
input.setBaseTypeMember2(2); |
| 81 |
input.setL1DerivedTypeMember("L1DerivedType"); |
| 82 |
test.wsdl.interop5.complextype.types.holders.BaseTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.BaseTypeHolder(input); |
| 83 |
binding.echoBaseType_2(inputHolder); |
| 84 |
test.wsdl.interop5.complextype.types.L1DerivedType output = (test.wsdl.interop5.complextype.types.L1DerivedType)inputHolder.value; |
| 85 |
// TBD - validate results |
| 86 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 87 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 88 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 89 |
} |
| 90 |
|
| 91 |
public void test3ComplexTypeExtensionsPortEchoBaseType_3() throws Exception { |
| 92 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 93 |
try { |
| 94 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 95 |
} |
| 96 |
catch (javax.xml.rpc.ServiceException jre) { |
| 97 |
if(jre.getLinkedCause()!=null) |
| 98 |
jre.getLinkedCause().printStackTrace(); |
| 99 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 100 |
} |
| 101 |
assertTrue("binding is null", binding != null); |
| 102 |
|
| 103 |
// Test operation |
| 104 |
test.wsdl.interop5.complextype.types.L2DerivedType1 input = new test.wsdl.interop5.complextype.types.L2DerivedType1(); |
| 105 |
input.setBaseTypeMember1("echoBaseType_3"); |
| 106 |
input.setBaseTypeMember2(2); |
| 107 |
input.setL1DerivedTypeMember("L2DerivedType1"); |
| 108 |
input.setL2DerivedType1Member(3); |
| 109 |
test.wsdl.interop5.complextype.types.holders.BaseTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.BaseTypeHolder(input); |
| 110 |
binding.echoBaseType_3(inputHolder); |
| 111 |
test.wsdl.interop5.complextype.types.L2DerivedType1 output = (test.wsdl.interop5.complextype.types.L2DerivedType1)inputHolder.value; |
| 112 |
// TBD - validate results |
| 113 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 114 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 115 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 116 |
assertEquals(output.getL2DerivedType1Member(),input.getL2DerivedType1Member()); |
| 117 |
} |
| 118 |
|
| 119 |
public void test4ComplexTypeExtensionsPortEchoBaseType_4() throws Exception { |
| 120 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 121 |
try { |
| 122 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 123 |
} |
| 124 |
catch (javax.xml.rpc.ServiceException jre) { |
| 125 |
if(jre.getLinkedCause()!=null) |
| 126 |
jre.getLinkedCause().printStackTrace(); |
| 127 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 128 |
} |
| 129 |
assertTrue("binding is null", binding != null); |
| 130 |
|
| 131 |
// Test operation |
| 132 |
test.wsdl.interop5.complextype.types.L2DerivedType2 input = new test.wsdl.interop5.complextype.types.L2DerivedType2(); |
| 133 |
input.setBaseTypeMember1("echoBaseType_4"); |
| 134 |
input.setBaseTypeMember2(2); |
| 135 |
input.setL1DerivedTypeMember("L2DerivedType2"); |
| 136 |
input.setL2DerivedType2Member(new java.math.BigDecimal(100.00)); |
| 137 |
test.wsdl.interop5.complextype.types.holders.BaseTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.BaseTypeHolder(input); |
| 138 |
binding.echoBaseType_4(inputHolder); |
| 139 |
test.wsdl.interop5.complextype.types.L2DerivedType2 output = (test.wsdl.interop5.complextype.types.L2DerivedType2)inputHolder.value; |
| 140 |
// TBD - validate results |
| 141 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 142 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 143 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 144 |
assertEquals(output.getL2DerivedType2Member(),input.getL2DerivedType2Member()); |
| 145 |
} |
| 146 |
|
| 147 |
public void test5ComplexTypeExtensionsPortEchoBaseType_5() throws Exception { |
| 148 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 149 |
try { |
| 150 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 151 |
} |
| 152 |
catch (javax.xml.rpc.ServiceException jre) { |
| 153 |
if(jre.getLinkedCause()!=null) |
| 154 |
jre.getLinkedCause().printStackTrace(); |
| 155 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 156 |
} |
| 157 |
assertTrue("binding is null", binding != null); |
| 158 |
|
| 159 |
// Test operation |
| 160 |
test.wsdl.interop5.complextype.types.L3DerivedType input = new test.wsdl.interop5.complextype.types.L3DerivedType(); |
| 161 |
input.setBaseTypeMember1("echoBaseType_5"); |
| 162 |
input.setBaseTypeMember2(2); |
| 163 |
input.setL1DerivedTypeMember("L3DerivedType"); |
| 164 |
input.setL2DerivedType2Member(new java.math.BigDecimal(100.00)); |
| 165 |
input.setL3DerivedTypeMember((short)5); |
| 166 |
test.wsdl.interop5.complextype.types.holders.BaseTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.BaseTypeHolder(input); |
| 167 |
binding.echoBaseType_5(inputHolder); |
| 168 |
test.wsdl.interop5.complextype.types.L3DerivedType output = (test.wsdl.interop5.complextype.types.L3DerivedType)inputHolder.value; |
| 169 |
// TBD - validate results |
| 170 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 171 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 172 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 173 |
assertEquals(output.getL2DerivedType2Member(),input.getL2DerivedType2Member()); |
| 174 |
assertEquals(output.getL3DerivedTypeMember(),input.getL3DerivedTypeMember()); |
| 175 |
} |
| 176 |
|
| 177 |
public void test6ComplexTypeExtensionsPortEchoL1DerivedType_1() throws Exception { |
| 178 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 179 |
try { |
| 180 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 181 |
} |
| 182 |
catch (javax.xml.rpc.ServiceException jre) { |
| 183 |
if(jre.getLinkedCause()!=null) |
| 184 |
jre.getLinkedCause().printStackTrace(); |
| 185 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 186 |
} |
| 187 |
assertTrue("binding is null", binding != null); |
| 188 |
|
| 189 |
// Test operation |
| 190 |
test.wsdl.interop5.complextype.types.L1DerivedType input = new test.wsdl.interop5.complextype.types.L1DerivedType(); |
| 191 |
input.setBaseTypeMember1("echoL1DerivedType_1"); |
| 192 |
input.setBaseTypeMember2(2); |
| 193 |
input.setL1DerivedTypeMember("L1DerivedType"); |
| 194 |
test.wsdl.interop5.complextype.types.holders.L1DerivedTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.L1DerivedTypeHolder(input); |
| 195 |
binding.echoL1DerivedType_1(inputHolder); |
| 196 |
test.wsdl.interop5.complextype.types.L1DerivedType output = inputHolder.value; |
| 197 |
// TBD - validate results |
| 198 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 199 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 200 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 201 |
} |
| 202 |
|
| 203 |
public void test7ComplexTypeExtensionsPortEchoL1DerivedType_2() throws Exception { |
| 204 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 205 |
try { |
| 206 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 207 |
} |
| 208 |
catch (javax.xml.rpc.ServiceException jre) { |
| 209 |
if(jre.getLinkedCause()!=null) |
| 210 |
jre.getLinkedCause().printStackTrace(); |
| 211 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 212 |
} |
| 213 |
assertTrue("binding is null", binding != null); |
| 214 |
|
| 215 |
// Test operation |
| 216 |
test.wsdl.interop5.complextype.types.L2DerivedType1 input = new test.wsdl.interop5.complextype.types.L2DerivedType1(); |
| 217 |
input.setBaseTypeMember1("echoL1DerivedType_1"); |
| 218 |
input.setBaseTypeMember2(2); |
| 219 |
input.setL1DerivedTypeMember("L2DerivedType1"); |
| 220 |
input.setL2DerivedType1Member(5); |
| 221 |
test.wsdl.interop5.complextype.types.holders.L1DerivedTypeHolder inputHolder = new test.wsdl.interop5.complextype.types.holders.L1DerivedTypeHolder(input); |
| 222 |
binding.echoL1DerivedType_2(inputHolder); |
| 223 |
test.wsdl.interop5.complextype.types.L2DerivedType1 output = (test.wsdl.interop5.complextype.types.L2DerivedType1)inputHolder.value; |
| 224 |
// TBD - validate results |
| 225 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 226 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 227 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 228 |
assertEquals(output.getL2DerivedType1Member(),input.getL2DerivedType1Member()); |
| 229 |
} |
| 230 |
|
| 231 |
public void test8ComplexTypeExtensionsPortEchoL2DerivedType1_1() throws Exception { |
| 232 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 233 |
try { |
| 234 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 235 |
} |
| 236 |
catch (javax.xml.rpc.ServiceException jre) { |
| 237 |
if(jre.getLinkedCause()!=null) |
| 238 |
jre.getLinkedCause().printStackTrace(); |
| 239 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 240 |
} |
| 241 |
assertTrue("binding is null", binding != null); |
| 242 |
|
| 243 |
// Test operation |
| 244 |
test.wsdl.interop5.complextype.types.L2DerivedType1 input = new test.wsdl.interop5.complextype.types.L2DerivedType1(); |
| 245 |
input.setBaseTypeMember1("echoL2DerivedType1_1"); |
| 246 |
input.setBaseTypeMember2(2); |
| 247 |
input.setL1DerivedTypeMember("L2DerivedType1"); |
| 248 |
input.setL2DerivedType1Member(5); |
| 249 |
test.wsdl.interop5.complextype.types.holders.L2DerivedType1Holder inputHolder = new test.wsdl.interop5.complextype.types.holders.L2DerivedType1Holder(input); |
| 250 |
binding.echoL2DerivedType1_1(inputHolder); |
| 251 |
test.wsdl.interop5.complextype.types.L2DerivedType1 output = inputHolder.value; |
| 252 |
// TBD - validate results |
| 253 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 254 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 255 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 256 |
assertEquals(output.getL2DerivedType1Member(),input.getL2DerivedType1Member()); |
| 257 |
} |
| 258 |
|
| 259 |
public void test9ComplexTypeExtensionsPortEchoL1DerivedTypeAsBaseType() throws Exception { |
| 260 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 261 |
try { |
| 262 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 263 |
} |
| 264 |
catch (javax.xml.rpc.ServiceException jre) { |
| 265 |
if(jre.getLinkedCause()!=null) |
| 266 |
jre.getLinkedCause().printStackTrace(); |
| 267 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 268 |
} |
| 269 |
assertTrue("binding is null", binding != null); |
| 270 |
|
| 271 |
test.wsdl.interop5.complextype.types.L1DerivedType input = new test.wsdl.interop5.complextype.types.L1DerivedType(); |
| 272 |
input.setBaseTypeMember1("echoBaseType_2"); |
| 273 |
input.setBaseTypeMember2(2); |
| 274 |
input.setL1DerivedTypeMember("L1DerivedType"); |
| 275 |
// Test operation |
| 276 |
test.wsdl.interop5.complextype.types.BaseType output = null; |
| 277 |
output = binding.echoL1DerivedTypeAsBaseType(input); |
| 278 |
// TBD - validate results |
| 279 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 280 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 281 |
} |
| 282 |
|
| 283 |
public void test10ComplexTypeExtensionsPortEchoL2DerivedType1AsBaseType() throws Exception { |
| 284 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 285 |
try { |
| 286 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 287 |
} |
| 288 |
catch (javax.xml.rpc.ServiceException jre) { |
| 289 |
if(jre.getLinkedCause()!=null) |
| 290 |
jre.getLinkedCause().printStackTrace(); |
| 291 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 292 |
} |
| 293 |
assertTrue("binding is null", binding != null); |
| 294 |
|
| 295 |
test.wsdl.interop5.complextype.types.L2DerivedType1 input = new test.wsdl.interop5.complextype.types.L2DerivedType1(); |
| 296 |
input.setBaseTypeMember1("echoBaseType_3"); |
| 297 |
input.setBaseTypeMember2(2); |
| 298 |
input.setL1DerivedTypeMember("L2DerivedType1"); |
| 299 |
input.setL2DerivedType1Member(3); |
| 300 |
// Test operation |
| 301 |
test.wsdl.interop5.complextype.types.BaseType output = null; |
| 302 |
output = binding.echoL2DerivedType1AsBaseType(input); |
| 303 |
// TBD - validate results |
| 304 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 305 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 306 |
} |
| 307 |
|
| 308 |
public void test11ComplexTypeExtensionsPortEchoBaseTypeAsL1DerivedType() throws Exception { |
| 309 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 310 |
try { |
| 311 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 312 |
} |
| 313 |
catch (javax.xml.rpc.ServiceException jre) { |
| 314 |
if(jre.getLinkedCause()!=null) |
| 315 |
jre.getLinkedCause().printStackTrace(); |
| 316 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 317 |
} |
| 318 |
assertTrue("binding is null", binding != null); |
| 319 |
|
| 320 |
test.wsdl.interop5.complextype.types.L1DerivedType input = new test.wsdl.interop5.complextype.types.L1DerivedType(); |
| 321 |
input.setBaseTypeMember1("echoBaseType_2"); |
| 322 |
input.setBaseTypeMember2(2); |
| 323 |
input.setL1DerivedTypeMember("L1DerivedType"); |
| 324 |
// Test operation |
| 325 |
test.wsdl.interop5.complextype.types.L1DerivedType output = null; |
| 326 |
output = binding.echoBaseTypeAsL1DerivedType(input); |
| 327 |
// TBD - validate results |
| 328 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 329 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 330 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 331 |
} |
| 332 |
|
| 333 |
public void test12ComplexTypeExtensionsPortEchoBaseTypeAsL2DerivedType1() throws Exception { |
| 334 |
test.wsdl.interop5.complextype.ComplexTypeExtensionsPortType binding; |
| 335 |
try { |
| 336 |
binding = new test.wsdl.interop5.complextype.ComplexTypeExtensionsServiceLocator().getComplexTypeExtensionsPort(url); |
| 337 |
} |
| 338 |
catch (javax.xml.rpc.ServiceException jre) { |
| 339 |
if(jre.getLinkedCause()!=null) |
| 340 |
jre.getLinkedCause().printStackTrace(); |
| 341 |
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| 342 |
} |
| 343 |
assertTrue("binding is null", binding != null); |
| 344 |
|
| 345 |
test.wsdl.interop5.complextype.types.L2DerivedType1 input = new test.wsdl.interop5.complextype.types.L2DerivedType1(); |
| 346 |
input.setBaseTypeMember1("echoBaseType_3"); |
| 347 |
input.setBaseTypeMember2(2); |
| 348 |
input.setL1DerivedTypeMember("L2DerivedType1"); |
| 349 |
input.setL2DerivedType1Member(3); |
| 350 |
// Test operation |
| 351 |
test.wsdl.interop5.complextype.types.L2DerivedType1 output = null; |
| 352 |
output = binding.echoBaseTypeAsL2DerivedType1(input); |
| 353 |
// TBD - validate results |
| 354 |
assertEquals(output.getBaseTypeMember1(),input.getBaseTypeMember1()); |
| 355 |
assertEquals(output.getBaseTypeMember2(),input.getBaseTypeMember2()); |
| 356 |
assertEquals(output.getL1DerivedTypeMember(),input.getL1DerivedTypeMember()); |
| 357 |
assertEquals(output.getL2DerivedType1Member(),input.getL2DerivedType1Member()); |
| 358 |
} |
| 359 |
} |