1 7 8 package test.wsdl.interop4.groupi; 9 10 import java.net.URL ; 11 import java.util.Arrays ; 12 import java.util.TimeZone ; 13 14 public class Round4XSDTestTestCase extends junit.framework.TestCase { 15 16 public static URL url = null; 17 18 public static void main(String [] args) throws Exception { 19 if (args.length == 1) { 20 url = new URL (args[0]); 21 } else { 22 url = new URL (new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoapAddress()); 23 } 24 junit.textui.TestRunner.run(new junit.framework.TestSuite(Round4XSDTestTestCase.class)); 25 } 27 28 public Round4XSDTestTestCase(java.lang.String name) throws Exception { 29 super(name); 30 if (url == null) { 31 url = new URL (new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoapAddress()); 32 } 33 } 34 public void test1Round4XSDTestSoapEchoVoid() { 35 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 36 try { 37 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 38 } 39 catch (javax.xml.rpc.ServiceException jre) { 40 jre.printStackTrace(); 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 binding.echoVoid(); 49 } 50 catch (java.rmi.RemoteException re) { 51 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 52 } 53 } 54 55 public void test2Round4XSDTestSoapEchoInteger() { 56 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 57 try { 58 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 59 } 60 catch (javax.xml.rpc.ServiceException jre) { 61 if(jre.getLinkedCause()!=null) 62 jre.getLinkedCause().printStackTrace(); 63 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 64 } 65 assertTrue("binding is null", binding != null); 66 67 try { 68 int value = binding.echoInteger(1500); 69 assertEquals(value, 1500); 70 } 71 catch (java.rmi.RemoteException re) { 72 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 73 } 74 } 75 76 public void test3Round4XSDTestSoapEchoFloat() { 77 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 78 try { 79 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 80 } 81 catch (javax.xml.rpc.ServiceException jre) { 82 if(jre.getLinkedCause()!=null) 83 jre.getLinkedCause().printStackTrace(); 84 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 85 } 86 assertTrue("binding is null", binding != null); 87 88 try { 89 float value = binding.echoFloat(1500); 90 assertEquals(1500, value, 0.001F); 91 } 92 catch (java.rmi.RemoteException re) { 93 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 94 } 95 } 96 97 public void test4Round4XSDTestSoapEchoString() { 98 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 99 try { 100 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 101 } 102 catch (javax.xml.rpc.ServiceException jre) { 103 if(jre.getLinkedCause()!=null) 104 jre.getLinkedCause().printStackTrace(); 105 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 106 } 107 assertTrue("binding is null", binding != null); 108 109 try { 110 java.lang.String value = null; 111 value = binding.echoString(new java.lang.String ("Hello World")); 112 assertEquals("Hello World", value); 113 } 114 catch (java.rmi.RemoteException re) { 115 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 116 } 117 } 118 119 public void test5Round4XSDTestSoapEchoBase64() { 120 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 121 try { 122 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(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 try { 132 byte[] input = new byte[] {0xC, 0xA, 0xF, 0xE, 0xB, 0xA, 0xB, 0xE}; 133 byte[] value = null; 134 value = binding.echoBase64(input); 135 assertTrue("Array values do not match", Arrays.equals(input, value)); 136 } 137 catch (java.rmi.RemoteException re) { 138 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 139 } 140 } 141 142 public void test6Round4XSDTestSoapEchoDate() { 143 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 144 try { 145 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 146 } 147 catch (javax.xml.rpc.ServiceException jre) { 148 if(jre.getLinkedCause()!=null) 149 jre.getLinkedCause().printStackTrace(); 150 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 151 } 152 assertTrue("binding is null", binding != null); 153 154 try { 155 java.util.Calendar input = java.util.Calendar.getInstance(); 156 input.setTimeZone(TimeZone.getTimeZone("GMT")); 157 java.util.Calendar value = null; 158 value = binding.echoDate(input); 159 value.setTimeZone(TimeZone.getTimeZone("GMT")); 160 assertEquals(input, value); 161 } 162 catch (java.rmi.RemoteException re) { 163 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 164 } 165 } 166 167 public void test7Round4XSDTestSoapEchoComplexType() { 168 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 169 try { 170 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 171 } 172 catch (javax.xml.rpc.ServiceException jre) { 173 if(jre.getLinkedCause()!=null) 174 jre.getLinkedCause().printStackTrace(); 175 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 176 } 177 assertTrue("binding is null", binding != null); 178 179 try { 180 test.wsdl.interop4.groupi.xsd.SOAPComplexType input = new test.wsdl.interop4.groupi.xsd.SOAPComplexType(); 181 input.setVarFloat(1024); 182 input.setVarInt(2048); 183 input.setVarString("Hello World"); 184 test.wsdl.interop4.groupi.xsd.SOAPComplexType value = binding.echoComplexType(input); 185 assertEquals(input, value); 186 } 187 catch (java.rmi.RemoteException re) { 188 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 189 } 190 } 191 192 public void test8Round4XSDTestSoapEchoIntegerMultiOccurs() { 193 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 194 try { 195 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 196 } 197 catch (javax.xml.rpc.ServiceException jre) { 198 if(jre.getLinkedCause()!=null) 199 jre.getLinkedCause().printStackTrace(); 200 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 201 } 202 assertTrue("binding is null", binding != null); 203 204 try { 205 test.wsdl.interop4.groupi.ArrayOfInt input = new test.wsdl.interop4.groupi.ArrayOfInt(); 206 int[] input2 = new int[3]; 207 input2[0] = 512; 208 input2[1] = 1024; 209 input2[2] = 2048; 210 input.set_int(input2); 211 int[] value = null; 212 value = binding.echoIntegerMultiOccurs(input); 213 assertEquals(input2.length, value.length); 214 for(int i=0;i<input2.length;i++) { 215 assertEquals("EchoIntegerMultiOccurs: Array values don't match", input2[i], value[i]); 216 } 217 assertTrue("Array values don't match", Arrays.equals(input2, value)); 218 } 219 catch (java.rmi.RemoteException re) { 220 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 221 } 222 } 223 224 public void test9Round4XSDTestSoapEchoFloatMultiOccurs() { 225 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 226 try { 227 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 228 } 229 catch (javax.xml.rpc.ServiceException jre) { 230 if(jre.getLinkedCause()!=null) 231 jre.getLinkedCause().printStackTrace(); 232 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 233 } 234 assertTrue("binding is null", binding != null); 235 236 try { 237 test.wsdl.interop4.groupi.ArrayOfFloat input = new test.wsdl.interop4.groupi.ArrayOfFloat(); 238 float[] input2 = new float[3]; 239 input2[0] = 512; 240 input2[1] = 1024; 241 input2[2] = 2048; 242 input.set_float(input2); 243 float[] value = null; 244 value = binding.echoFloatMultiOccurs(input); 245 assertTrue("Array values don't match", Arrays.equals(input2, value)); 246 } 247 catch (java.rmi.RemoteException re) { 248 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 249 } 250 } 251 252 public void test10Round4XSDTestSoapEchoStringMultiOccurs() { 253 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 254 try { 255 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 256 } 257 catch (javax.xml.rpc.ServiceException jre) { 258 if(jre.getLinkedCause()!=null) 259 jre.getLinkedCause().printStackTrace(); 260 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 261 } 262 assertTrue("binding is null", binding != null); 263 264 try { 265 test.wsdl.interop4.groupi.ArrayOfString input = new test.wsdl.interop4.groupi.ArrayOfString(); 266 String [] input2 = new String [3]; 267 input2[0] = "512"; 268 input2[1] = "1024"; 269 input2[2] = "2048"; 270 input.setString(input2); 271 java.lang.String [] value = null; 272 value = binding.echoStringMultiOccurs(input); 273 assertTrue("Array values don't match", Arrays.equals(input2, value)); 274 } 275 catch (java.rmi.RemoteException re) { 276 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 277 } 278 } 279 280 public void test11Round4XSDTestSoapEchoComplexTypeMultiOccurs() { 281 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 282 try { 283 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 284 } 285 catch (javax.xml.rpc.ServiceException jre) { 286 if(jre.getLinkedCause()!=null) 287 jre.getLinkedCause().printStackTrace(); 288 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 289 } 290 assertTrue("binding is null", binding != null); 291 292 try { 293 test.wsdl.interop4.groupi.xsd.ArrayOfSOAPComplexType input = new test.wsdl.interop4.groupi.xsd.ArrayOfSOAPComplexType(); 294 input.setSOAPComplexType(new test.wsdl.interop4.groupi.xsd.SOAPComplexType[1]); 295 test.wsdl.interop4.groupi.xsd.SOAPComplexType input2 = new test.wsdl.interop4.groupi.xsd.SOAPComplexType(); 296 input2.setVarFloat(1024); 297 input2.setVarInt(2048); 298 input2.setVarString("Hello World"); 299 input.setSOAPComplexType(0,input2); 300 test.wsdl.interop4.groupi.xsd.SOAPComplexType[] value = null; 301 value = binding.echoComplexTypeMultiOccurs(input); 302 assertTrue("Array values don't match", Arrays.equals(input.getSOAPComplexType(), value)); 303 } 304 catch (java.rmi.RemoteException re) { 305 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 306 } 307 } 308 309 public void test12Round4XSDTestSoapEchoDecimal() { 310 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 311 try { 312 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 313 } 314 catch (javax.xml.rpc.ServiceException jre) { 315 if(jre.getLinkedCause()!=null) 316 jre.getLinkedCause().printStackTrace(); 317 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 318 } 319 assertTrue("binding is null", binding != null); 320 321 try { 322 java.math.BigDecimal input = new java.math.BigDecimal (512); 323 java.math.BigDecimal value = null; 324 value = binding.echoDecimal(input); 325 assertEquals(input, value); 326 } 327 catch (java.rmi.RemoteException re) { 328 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 329 } 330 } 331 332 public void test13Round4XSDTestSoapEchoBoolean() { 333 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 334 try { 335 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 336 } 337 catch (javax.xml.rpc.ServiceException jre) { 338 if(jre.getLinkedCause()!=null) 339 jre.getLinkedCause().printStackTrace(); 340 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 341 } 342 assertTrue("binding is null", binding != null); 343 344 try { 345 boolean value = false; 346 value = binding.echoBoolean(true); 347 assertTrue("boolean value is not TRUE", value == true); 348 } 349 catch (java.rmi.RemoteException re) { 350 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 351 } 352 } 353 354 public void test14Round4XSDTestSoapEchoHexBinary() { 355 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 356 try { 357 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 358 } 359 catch (javax.xml.rpc.ServiceException jre) { 360 if(jre.getLinkedCause()!=null) 361 jre.getLinkedCause().printStackTrace(); 362 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 363 } 364 assertTrue("binding is null", binding != null); 365 366 try { 367 byte[] input = new byte[] {0xC, 0xA, 0xF, 0xE, 0xB, 0xA, 0xB, 0xE}; 368 byte[] value = null; 369 value = binding.echoHexBinary(input); 370 assertTrue("Array values don't match", Arrays.equals(input, value)); 371 } 372 catch (java.rmi.RemoteException re) { 373 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 374 } 375 } 376 377 public void test15Round4XSDTestSoapEchoComplexTypeAsSimpleTypes() { 378 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 379 try { 380 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 381 } 382 catch (javax.xml.rpc.ServiceException jre) { 383 if(jre.getLinkedCause()!=null) 384 jre.getLinkedCause().printStackTrace(); 385 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 386 } 387 assertTrue("binding is null", binding != null); 388 389 try { 390 test.wsdl.interop4.groupi.xsd.SOAPComplexType input = new test.wsdl.interop4.groupi.xsd.SOAPComplexType(); 391 input.setVarFloat(1024); 392 input.setVarInt(2048); 393 input.setVarString("Hello World"); 394 javax.xml.rpc.holders.StringHolder value1 = new javax.xml.rpc.holders.StringHolder (); 395 javax.xml.rpc.holders.IntHolder value2 = new javax.xml.rpc.holders.IntHolder (); 396 javax.xml.rpc.holders.FloatHolder value3 = new javax.xml.rpc.holders.FloatHolder (); 397 binding.echoComplexTypeAsSimpleTypes(input, value1, value2, value3); 398 assertEquals(input.getVarString(), value1.value); 399 assertEquals(input.getVarInt(), value2.value); 400 assertEquals(input.getVarFloat(), value3.value, 0.01F); 401 } 402 catch (java.rmi.RemoteException re) { 403 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 404 } 405 } 406 407 public void test16Round4XSDTestSoapEchoSimpleTypesAsComplexType() { 408 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 409 try { 410 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 411 } 412 catch (javax.xml.rpc.ServiceException jre) { 413 if(jre.getLinkedCause()!=null) 414 jre.getLinkedCause().printStackTrace(); 415 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 416 } 417 assertTrue("binding is null", binding != null); 418 419 try { 420 test.wsdl.interop4.groupi.xsd.SOAPComplexType value = null; 421 value = binding.echoSimpleTypesAsComplexType(new java.lang.String ("Hello World"), 1024, 2048); 422 assertEquals(value.getVarString(), "Hello World"); 423 assertEquals(value.getVarInt(), 1024); 424 assertEquals(value.getVarFloat(), 2048, 0.01F); 425 } 426 catch (java.rmi.RemoteException re) { 427 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 428 } 429 } 430 431 public void test17Round4XSDTestSoapEchoNestedComplexType() { 432 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 433 try { 434 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 435 } 436 catch (javax.xml.rpc.ServiceException jre) { 437 if(jre.getLinkedCause()!=null) 438 jre.getLinkedCause().printStackTrace(); 439 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 440 } 441 assertTrue("binding is null", binding != null); 442 443 try { 444 test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType input = new test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType(); 445 input.setVarFloat(512); 446 input.setVarInt(1024); 447 input.setVarString("Hello World"); 448 test.wsdl.interop4.groupi.xsd.SOAPComplexType input2 = new test.wsdl.interop4.groupi.xsd.SOAPComplexType(); 449 input2.setVarFloat(1024); 450 input2.setVarInt(2048); 451 input2.setVarString("Hello World"); 452 input.setVarComplexType(input2); 453 test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType value = null; 454 value = binding.echoNestedComplexType(input); 455 assertEquals(input, value); 456 } 457 catch (java.rmi.RemoteException re) { 458 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 459 } 460 } 461 462 public void test18Round4XSDTestSoapEchoNestedMultiOccurs() { 463 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 464 try { 465 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 466 } 467 catch (javax.xml.rpc.ServiceException jre) { 468 if(jre.getLinkedCause()!=null) 469 jre.getLinkedCause().printStackTrace(); 470 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 471 } 472 assertTrue("binding is null", binding != null); 473 474 try { 475 test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType input = new test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType(); 476 input.setVarFloat(512); 477 input.setVarInt(1024); 478 input.setVarString("H W"); 479 test.wsdl.interop4.groupi.xsd.ArrayOfString varMultiOccurs = new test.wsdl.interop4.groupi.xsd.ArrayOfString(); 480 varMultiOccurs.setString(new String []{"A","B","C"}); 481 input.setVarMultiOccurs(varMultiOccurs); 482 test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType value = null; 483 value = binding.echoNestedMultiOccurs(input); 484 assertEquals(input, value); 485 } 486 catch (java.rmi.RemoteException re) { 487 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 488 } 489 } 490 491 public void test19Round4XSDTestSoapEchoChoice() { 492 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 493 try { 494 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 495 } 496 catch (javax.xml.rpc.ServiceException jre) { 497 if(jre.getLinkedCause()!=null) 498 jre.getLinkedCause().printStackTrace(); 499 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 500 } 501 assertTrue("binding is null", binding != null); 502 503 try { 504 test.wsdl.interop4.groupi.xsd.ChoiceComplexType input = new test.wsdl.interop4.groupi.xsd.ChoiceComplexType(); 506 input.setName0("Hello"); 507 test.wsdl.interop4.groupi.xsd.ChoiceComplexType value = null; 509 value = binding.echoChoice(input); 510 assertEquals(input, value); 511 } 512 catch (java.rmi.RemoteException re) { 513 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 514 } 515 } 516 517 public void test20Round4XSDTestSoapEchoEnum() { 518 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 519 try { 520 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 521 } 522 catch (javax.xml.rpc.ServiceException jre) { 523 if(jre.getLinkedCause()!=null) 524 jre.getLinkedCause().printStackTrace(); 525 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 526 } 527 assertTrue("binding is null", binding != null); 528 529 try { 530 test.wsdl.interop4.groupi.xsd.Enum input = test.wsdl.interop4.groupi.xsd.Enum.BitOne; 531 test.wsdl.interop4.groupi.xsd.Enum value = null; 532 value = binding.echoEnum(input); 533 assertEquals(input, value); 534 } 535 catch (java.rmi.RemoteException re) { 536 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 537 } 538 } 539 540 public void test21Round4XSDTestSoapRetAnyType() { 541 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 542 try { 543 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 544 } 545 catch (javax.xml.rpc.ServiceException jre) { 546 if(jre.getLinkedCause()!=null) 547 jre.getLinkedCause().printStackTrace(); 548 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 549 } 550 assertTrue("binding is null", binding != null); 551 552 try { 553 java.lang.Object input = new java.lang.String ("Hello World"); 554 java.lang.Object value = null; 555 value = binding.echoAnyType(input); 556 assertEquals(value, input); 557 } 558 catch (java.rmi.RemoteException re) { 559 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 560 } 561 } 562 563 public void test22Round4XSDTestSoapRetAny() { 564 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 565 try { 566 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 567 } 568 catch (javax.xml.rpc.ServiceException jre) { 569 if(jre.getLinkedCause()!=null) 570 jre.getLinkedCause().printStackTrace(); 571 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 572 } 573 assertTrue("binding is null", binding != null); 574 575 try { 576 test.wsdl.interop4.groupi.__echoAnyElement_inputAny input = new test.wsdl.interop4.groupi.__echoAnyElement_inputAny(); 577 org.apache.axis.message.MessageElement [] _any = new org.apache.axis.message.MessageElement [1]; 578 _any[0] = new org.apache.axis.message.MessageElement("hello", "world"); 579 input.set_any(_any); 580 test.wsdl.interop4.groupi.__echoAnyElementResponse_return value = null; 581 value = binding.echoAnyElement(input); 582 assertEquals(value.get_any()[0].getQName(), _any[0].getQName()); 583 } 584 catch (java.rmi.RemoteException re) { 585 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 586 } 587 } 588 589 public void test23Round4XSDTestSoapEchoVoidSoapHeader() { 590 test.wsdl.interop4.groupi.Round4XSDTestSoap binding; 591 try { 592 binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); 593 } 594 catch (javax.xml.rpc.ServiceException jre) { 595 if(jre.getLinkedCause()!=null) 596 jre.getLinkedCause().printStackTrace(); 597 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 598 } 599 assertTrue("binding is null", binding != null); 600 601 try { 602 Round4XSDTestSoapStub stub = (Round4XSDTestSoapStub) binding; 603 String namespace = url.toString(); 604 stub.setHeader(namespace, "test1", "header1"); 605 stub.setHeader(namespace, "test2", "header2"); 606 binding.echoVoidSoapHeader(); 607 assertEquals(stub.getHeader(namespace, "test1").getObjectValue(), "header1"); 608 assertEquals(stub.getHeader(namespace, "test2").getObjectValue(), "header2"); 609 } 610 catch (java.rmi.RemoteException re) { 611 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); 612 } 613 } 614 615 } 616 | Popular Tags |