1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850
|
/**
* TypeTestServiceTestCase.java
*
* This file was auto-generated from WSDL
* by the Apache Axis Wsdl2java emitter.
*/
package test.wsdl.types;
import org.apache.axis.holders.DayHolder;
import org.apache.axis.holders.MonthDayHolder;
import org.apache.axis.holders.MonthHolder;
import org.apache.axis.holders.NegativeIntegerHolder;
import org.apache.axis.holders.NonNegativeIntegerHolder;
import org.apache.axis.holders.NonPositiveIntegerHolder;
import org.apache.axis.holders.PositiveIntegerHolder;
import org.apache.axis.holders.TimeHolder;
import org.apache.axis.holders.URIHolder;
import org.apache.axis.holders.UnsignedByteHolder;
import org.apache.axis.holders.UnsignedIntHolder;
import org.apache.axis.holders.UnsignedLongHolder;
import org.apache.axis.holders.UnsignedShortHolder;
import org.apache.axis.holders.YearHolder;
import org.apache.axis.holders.YearMonthHolder;
import org.apache.axis.types.Day;
import org.apache.axis.types.Month;
import org.apache.axis.types.MonthDay;
import org.apache.axis.types.NegativeInteger;
import org.apache.axis.types.NonNegativeInteger;
import org.apache.axis.types.NonPositiveInteger;
import org.apache.axis.types.PositiveInteger;
import org.apache.axis.types.URI;
import org.apache.axis.types.URI.MalformedURIException;
import org.apache.axis.types.UnsignedByte;
import org.apache.axis.types.UnsignedInt;
import org.apache.axis.types.UnsignedLong;
import org.apache.axis.types.UnsignedShort;
import org.apache.axis.types.Year;
import org.apache.axis.types.YearMonth;
import test.wsdl.types.comprehensive_service.TypeTest;
import test.wsdl.types.comprehensive_service.TypeTestServiceLocator;
import test.wsdl.types.comprehensive_types.Animal;
import test.wsdl.types.comprehensive_types.Cat;
import test.wsdl.types.comprehensive_types.ComplexAll;
import test.wsdl.types.comprehensive_types.ComplexSequence;
import test.wsdl.types.comprehensive_types.ComplexWComplex;
import test.wsdl.types.comprehensive_types.EmptyComplexType;
import test.wsdl.types.comprehensive_types.Enum;
import test.wsdl.types.comprehensive_types.PersionCat;
import test.wsdl.types.comprehensive_types.Time;
import test.wsdl.types.comprehensive_types.Yarn;
import test.wsdl.types.comprehensive_types.ComplexWComplexStock_quote;
import test.wsdl.types.comprehensive_types.holders.AnimalHolder;
import test.wsdl.types.comprehensive_types.holders.ArrayHolder;
import test.wsdl.types.comprehensive_types.holders.ArrayMHolder;
import test.wsdl.types.comprehensive_types.holders.CatHolder;
import test.wsdl.types.comprehensive_types.holders.ComplexAllHolder;
import test.wsdl.types.comprehensive_types.holders.ComplexSequenceHolder;
import test.wsdl.types.comprehensive_types.holders.ComplexWComplexHolder;
import test.wsdl.types.comprehensive_types.holders.EmptyComplexTypeHolder;
import test.wsdl.types.comprehensive_types.holders.EnumHolder;
import test.wsdl.types.comprehensive_types2.A;
import test.wsdl.types.comprehensive_types2.B;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.holders.BigDecimalHolder;
import javax.xml.rpc.holders.BigIntegerHolder;
import javax.xml.rpc.holders.BooleanHolder;
import javax.xml.rpc.holders.BooleanWrapperHolder;
import javax.xml.rpc.holders.ByteArrayHolder;
import javax.xml.rpc.holders.ByteHolder;
import javax.xml.rpc.holders.CalendarHolder;
import javax.xml.rpc.holders.DoubleHolder;
import javax.xml.rpc.holders.DoubleWrapperHolder;
import javax.xml.rpc.holders.FloatHolder;
import javax.xml.rpc.holders.FloatWrapperHolder;
import javax.xml.rpc.holders.IntHolder;
import javax.xml.rpc.holders.IntegerWrapperHolder;
import javax.xml.rpc.holders.LongHolder;
import javax.xml.rpc.holders.ObjectHolder;
import javax.xml.rpc.holders.QNameHolder;
import javax.xml.rpc.holders.ShortHolder;
import javax.xml.rpc.holders.ShortWrapperHolder;
import javax.xml.rpc.holders.StringHolder;
import java.util.Calendar;
import java.util.Date;
public class VerifyTestCase extends junit.framework.TestCase {
public VerifyTestCase(String name) {
super(name);
}
/* FIXME: RUNTIME WSDL broken.
public void testTypeTestWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
java.net.URL url = new java.net.URL(new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTestAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getServiceName());
assertTrue(service != null);
}
*/
public void testTypeTest() throws Exception {
TypeTest binding;
try {
binding = new TypeTestServiceLocator().getTypeTest();
}
catch (ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertTrue("binding is null", binding != null);
// setup unsigned
UnsignedLong ulong = null;
UnsignedInt uint = null;
UnsignedShort ushort = null;
UnsignedByte ubyte = null;
NonNegativeInteger nnint = null;
PositiveInteger pint = null;
NonPositiveInteger npint = null;
NegativeInteger nint = null;
URI uri = null;
Year year = null;
Month month = null;
Day day = null;
YearMonth yearmonth = null;
MonthDay monthday = null;
try {
ulong = new UnsignedLong(7777);
uint = new UnsignedInt(777);
ushort = new UnsignedShort(77);
ubyte = new UnsignedByte(7);
nnint = new NonNegativeInteger("7");
pint = new PositiveInteger("7");
npint = new NonPositiveInteger("-7");
nint = new NegativeInteger("-7");
uri = new URI("urn:this-is-a-test");
year = new Year(1995);
month = new Month(7);
day = new Day(13);
yearmonth = new YearMonth(2002, 8);
monthday = new MonthDay(8, 26);
} catch (Exception e) {
// possibly thrown from constructors
// wont happen since we know the values are good!
}
try {
binding.allPrimitivesIn(
"hi",
new java.math.BigInteger("5"),
0,
(long) 0,
(short) 0,
new java.math.BigDecimal(6),
(float) 0,
(double) 0,
true,
(byte) 0,
new QName("hi", "ho"),
Calendar.getInstance(),
new byte[]{(byte) 5},
new byte[]{(byte) 6},
"hi ho",
new Boolean(true),
new Float(0),
new Double(0),
new java.math.BigDecimal(7),
new Integer(0),
new Short((short) 0),
new byte[]{(byte) 7},
new org.apache.axis.types.Time("12:01:30.150Z"),
ulong,
uint,
ushort,
ubyte,
nnint,
pint,
npint,
nint,
uri,
year,
month,
day,
yearmonth,
monthday
);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("allPrimitives: " + re );
}
try {
binding.allPrimitivesInout(
new StringHolder("hi"),
new BigIntegerHolder(new java.math.BigInteger("0")),
new IntHolder(1),
new LongHolder(2),
new ShortHolder((short) 3),
new BigDecimalHolder(new java.math.BigDecimal(4)),
new FloatHolder(5),
new DoubleHolder(6),
new BooleanHolder(true),
new ByteHolder((byte) 7),
new QNameHolder(new QName("ho", "hi")),
new CalendarHolder(Calendar.getInstance()),
new ByteArrayHolder(new byte[]{(byte) 8}),
new ByteArrayHolder(new byte[]{(byte) 9}),
new StringHolder("ho hi"),
new BooleanWrapperHolder(new Boolean(true)),
new FloatWrapperHolder(new Float(10)),
new DoubleWrapperHolder(new Double(11)),
new BigDecimalHolder(new java.math.BigDecimal(12)),
new IntegerWrapperHolder(new Integer(13)),
new ShortWrapperHolder(new Short((short) 14)),
new ByteArrayHolder(new byte[]{(byte) 15}),
new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),
new UnsignedLongHolder(ulong),
new UnsignedIntHolder(uint),
new UnsignedShortHolder(ushort),
new UnsignedByteHolder(ubyte),
new NonNegativeIntegerHolder(nnint),
new PositiveIntegerHolder(pint),
new NonPositiveIntegerHolder(npint),
new NegativeIntegerHolder(nint),
new URIHolder(uri),
new YearHolder(year),
new MonthHolder(month),
new DayHolder(day),
new YearMonthHolder(yearmonth),
new MonthDayHolder(monthday)
);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );
}
try {
binding.allPrimitivesOut(
new StringHolder(),
new BigIntegerHolder(),
new IntHolder(),
new LongHolder(),
new ShortHolder(),
new BigDecimalHolder(),
new FloatHolder(),
new DoubleHolder(),
new BooleanHolder(),
new ByteHolder(),
new QNameHolder(),
new CalendarHolder(),
new ByteArrayHolder(),
new ByteArrayHolder(),
new StringHolder(),
new BooleanWrapperHolder(),
new FloatWrapperHolder(),
new DoubleWrapperHolder(),
new BigDecimalHolder(),
new IntegerWrapperHolder(),
new ShortWrapperHolder(),
new ByteArrayHolder(),
new TimeHolder(),
new UnsignedLongHolder(),
new UnsignedIntHolder(),
new UnsignedShortHolder(),
new UnsignedByteHolder(),
new NonNegativeIntegerHolder(),
new PositiveIntegerHolder(),
new NonPositiveIntegerHolder(),
new NegativeIntegerHolder(),
new URIHolder(),
new YearHolder(),
new MonthHolder(),
new DayHolder(),
new YearMonthHolder(),
new MonthDayHolder()
);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("allPrimitivesOut Exception caught: " + re );
}
try {
binding.enumIn(Enum.one);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("enumIn Exception caught: " + re );
}
try {
binding.enumInout(new EnumHolder(Enum.two));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("enumInout Exception caught: " + re );
}
try {
EnumHolder value = new EnumHolder();
binding.enumOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("enumOut Exception caught: " + re );
}
try {
Enum value = null;
value = binding.enumReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("enumReturn Exception caught: " + re );
}
try {
binding.arrayIn(new String[] {"hi", "ho"});
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayIn Exception caught: " + re);
}
try {
binding.arrayInout(new ArrayHolder(new String[] {"hee", "hee"}));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayInout Exception caught: " + re);
}
try {
ArrayHolder value = new ArrayHolder();
binding.arrayOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayOut Exception caught: " + re);
}
try {
String[] value = binding.arrayReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayReturn Exception caught: " + re);
}
try {
binding.arrayMIn(new int[][][] {new int[][] {new int[] {2}}});
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayMIn Exception caught: " + re);
}
try {
binding.arrayMInout(new ArrayMHolder(new int[][][] {new int[][] {new int[] {2}}}));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayMInout Exception caught: " + re);
}
try {
ArrayMHolder value = new ArrayMHolder();
binding.arrayMOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayMOut Exception caught: " + re);
}
try {
int[][][] value = binding.arrayMReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("arrayMReturn Exception caught: " + re);
}
ComplexAll complexAll = new ComplexAll();
complexAll.setAreaCode(512);
complexAll.setExchange("838");
complexAll.setNumber("4544");
try {
binding.complexAllIn(complexAll);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexAllIn Exception caught: " + re);
}
try {
binding.complexAllInout(new ComplexAllHolder(complexAll));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexAllInout Exception caught: " + re );
}
try {
ComplexAllHolder value = new ComplexAllHolder();
binding.complexAllOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexAllOut Exception caught: " + re );
}
try {
ComplexAll value = null;
value = binding.complexAllReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexAllReturn Exception caught: " + re );
}
ComplexSequence complexSequence = new ComplexSequence();
complexSequence.setAreaCode(512);
complexSequence.setExchange("838");
complexSequence.setNumber("4544");
try {
binding.complexSequenceIn(complexSequence);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexSequenceIn Exception caught: " + re );
}
try {
binding.complexSequenceInout(new ComplexSequenceHolder(complexSequence));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexSequenceInout Exception caught: " + re );
}
try {
ComplexSequenceHolder value = new ComplexSequenceHolder();
binding.complexSequenceOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexSequenceOut Exception caught: " + re );
}
try {
ComplexSequence value = null;
value = binding.complexSequenceReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
}
String[] optArray = new String[] {"abc", "def"};
byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
B b = new B();
A a = new A();
a.setC(3);
b.setD(a);
ComplexWComplexStock_quote stockQuote = new ComplexWComplexStock_quote();
Time time = new Time();
time.setDST(false);
stockQuote.setTime(time);
stockQuote.setChange("5");
stockQuote.setPctchange("100%");
stockQuote.setBid("9");
stockQuote.setAsk("11");
stockQuote.setSymbol("AXS");
stockQuote.setLast("5");
ComplexWComplex complexWComplex = new ComplexWComplex();
complexWComplex.setStock_quote(stockQuote);
complexWComplex.setOutside(22);
binding.complexWComplexIn(complexWComplex);
try {
binding.complexWComplexInout(new ComplexWComplexHolder(complexWComplex));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexWComplexInout Exception caught: " + re );
}
try {
ComplexWComplexHolder value = new ComplexWComplexHolder();
binding.complexWComplexOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexWComplexOut Exception caught: " + re );
}
try {
ComplexWComplex value = null;
value = binding.complexWComplexReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("complexWComplexReturn Exception caught: " + re );
}
try {
EmptyComplexType value = new EmptyComplexType();
binding.emptyComplexTypeIn(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("emptyComplexTypeIn Exception caught: " + re );
}
try {
EmptyComplexTypeHolder value = new EmptyComplexTypeHolder( new EmptyComplexType());
binding.emptyComplexTypeInout(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("emptyComplexTypeInout Exception caught: " + re );
}
try {
EmptyComplexTypeHolder value = new EmptyComplexTypeHolder();
binding.emptyComplexTypeOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("emptyComplexTypeOut Exception caught: " + re );
}
try {
EmptyComplexType value = null;
value = binding.emptyComplexTypeReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("emptyComplexTypeReturn Exception caught: " + re );
}
try {
binding.anyIn(new java.lang.String("hi ho"));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("anyIn Exception caught: " + re );
}
try {
binding.anyInout(new ObjectHolder(new java.lang.String("yo ho ho")));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("anyInout Exception caught: " + re );
}
try {
ObjectHolder value = new ObjectHolder();
binding.anyOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("anyOut Exception caught: " + re );
}
try {
java.lang.Object value = binding.anyReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
}
Cat cat = new Cat();
cat.setPurr("meow");
PersionCat persion = new PersionCat();
Yarn yarn = new Yarn();
yarn.setColor("green");
persion.setPurr("meow meow");
persion.setColor("blue");
persion.setToy(yarn);
try {
binding.animalIn(cat);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("animalIn Exception caught: " + re );
}
try {
binding.animalInout(new AnimalHolder(cat));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("animalInout Exception caught: " + re );
}
try {
AnimalHolder value = new AnimalHolder();
binding.animalOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("animalOut Exception caught: " + re );
}
try {
Animal value = null;
value = binding.animalReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("animalReturn Exception caught: " + re );
}
try {
binding.catIn(cat);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catIn Exception caught: " + re );
}
try {
binding.catInout(new CatHolder(cat));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catInout Exception caught: " + re );
}
try {
CatHolder value = new CatHolder();
binding.catOut(value);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catOut Exception caught: " + re );
}
try {
Cat value = null;
value = binding.catReturn();
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catReturn Exception caught: " + re );
}
try {
binding.catIn(persion);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catIn Exception caught: " + re );
}
try {
binding.catInout(new CatHolder(persion));
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("catInout Exception caught: " + re );
}
try {
BooleanHolder bh = new BooleanHolder(true);
boolean actual = binding.methodBoolean(true, bh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodBoolean Exception caught: " + re );
}
try {
ByteHolder bh = new ByteHolder((byte)5);
byte actual = binding.methodByte((byte)5, bh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodByte Exception caught: " + re );
}
try {
ShortHolder sh = new ShortHolder((short)127);
short actual = binding.methodShort((short)127, sh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodShort Exception caught: " + re );
}
try {
IntHolder ih = new IntHolder(2002);
int actual = binding.methodInt(2002, ih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodInt Exception caught: " + re );
}
try {
LongHolder lh = new LongHolder(14003L);
long actual = binding.methodLong(14003L, lh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodLong Exception caught: " + re );
}
try {
FloatHolder fh = new FloatHolder(2.342F);
float delta = 0.0F;
float actual = binding.methodFloat(2.342F, fh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodFloat Exception caught: " + re );
}
try {
DoubleHolder dh = new DoubleHolder(5006.345D);
double value = 110312.2325D;
double delta = 0.0D;
double actual = binding.methodDouble(5006.345D, dh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodDouble Exception caught: " + re );
}
try {
String sendValue = "Sent String";
StringHolder sh = new StringHolder(sendValue);
String actual = binding.methodString(sendValue, sh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodString Exception caught: " + re );
}
try {
java.math.BigInteger sendValue = new java.math.BigInteger("3048");
BigIntegerHolder bih = new BigIntegerHolder(sendValue);
java.math.BigInteger actual = binding.methodInteger(sendValue, bih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodInteger Exception caught: " + re );
}
try {
java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");
BigDecimalHolder bdh = new BigDecimalHolder(sendValue);
java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );
}
try {
Calendar sendValue = Calendar.getInstance();
sendValue.setTime(new Date(1012182070626L));
CalendarHolder ch = new CalendarHolder(sendValue);
Calendar actual = binding.methodDateTime(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodDateTime Exception caught: " + re );
}
// Comment out for now because causes compile errors
// try {
// byte[] sendValue = {(byte) 10, (byte) 9};
// ByteArrayHolder bah = new ByteArrayHolder(sendValue);
// byte[] actual = binding.methodBase64Binary(sendValue, bah);
// } catch (java.rmi.RemoteException re) {
// throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
// }
try {
QName sendValue = new QName("test1", "test2");
QNameHolder qh = new QNameHolder(sendValue);
QName actual = binding.methodQName(sendValue, qh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodQName Exception caught: " + re );
}
// Comment out for now because causes compile errors
// try {
// byte[] sendValue = {(byte) 10, (byte) 9};
// ByteArrayHolder bah = new ByteArrayHolder(sendValue);
// byte[] actual = binding.methodHexBinary(sendValue, bah);
// } catch (java.rmi.RemoteException re) {
// throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
// }
try {
org.apache.axis.types.Time sendValue = new org.apache.axis.types.Time("15:30:45.245Z");
TimeHolder ch = new TimeHolder(sendValue);
org.apache.axis.types.Time actual = binding.methodTime(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodTime Exception caught: " + re );
}
try {
UnsignedLong sendValue = null;
try {
sendValue = new UnsignedLong(18446744073709551600D);
} catch (Exception e) {
}
UnsignedLongHolder ch = new UnsignedLongHolder(sendValue);
UnsignedLong actual = binding.methodUnsignedLong(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodUnsignedLong Exception caught: " + re );
}
try {
UnsignedInt sendValue = null;
try {
sendValue = new UnsignedInt(4294967200L);
} catch (Exception e) {
}
UnsignedIntHolder ch = new UnsignedIntHolder(sendValue);
UnsignedInt actual = binding.methodUnsignedInt(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodUnsignedInt Exception caught: " + re );
}
try {
UnsignedShort sendValue = null;
try {
sendValue = new UnsignedShort(65530);
} catch (Exception e) {
}
UnsignedShortHolder ch = new UnsignedShortHolder(sendValue);
UnsignedShort actual = binding.methodUnsignedShort(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodUnsignedShort Exception caught: " + re );
}
try {
UnsignedByte sendValue = null;
try {
sendValue = new UnsignedByte(250);
} catch (Exception e) {
}
UnsignedByteHolder ch = new UnsignedByteHolder(sendValue);
UnsignedByte actual = binding.methodUnsignedByte(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodUnsignedByte Exception caught: " + re );
}
try {
NonNegativeInteger sendValue = new NonNegativeInteger("246802468024680");
NonNegativeIntegerHolder nnih = new NonNegativeIntegerHolder(sendValue);
NonNegativeInteger actual = binding.methodNonNegativeInteger(sendValue, nnih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodNonNegativeInteger Exception caught: " + re );
}
try {
PositiveInteger sendValue = new PositiveInteger("246802468024680");
PositiveIntegerHolder pih = new PositiveIntegerHolder(sendValue);
PositiveInteger actual = binding.methodPositiveInteger(sendValue, pih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodPositiveInteger Exception caught: " + re );
}
try {
NonPositiveInteger sendValue = new NonPositiveInteger("-246802468024680");
NonPositiveIntegerHolder npih = new NonPositiveIntegerHolder(sendValue);
NonPositiveInteger actual = binding.methodNonPositiveInteger(sendValue, npih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodNonPositiveInteger Exception caught: " + re );
}
try {
NegativeInteger sendValue = new NegativeInteger("-246802468024680");
NegativeIntegerHolder nih = new NegativeIntegerHolder(sendValue);
NegativeInteger actual = binding.methodNegativeInteger(sendValue, nih);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodNegativeInteger Exception caught: " + re );
}
try {
URI sendValue = null;
try {
sendValue = new URI("urn:this-is-a-test");
} catch (URI.MalformedURIException e) {
}
URIHolder ch = new URIHolder(sendValue);
URI actual = binding.methodAnyURI(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );
}
try {
test.wsdl.types.comprehensive_types2.SimpleAnyURIType sendValue = new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:this-is-a-simple-test");
test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder ch = new test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder(sendValue);
test.wsdl.types.comprehensive_types2.SimpleAnyURIType actual = binding.methodSimpleAnyURI(sendValue, ch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );
}
try {
Year sendValue = null;
try {
year = new Year(1995);
} catch (Exception e) {
}
YearHolder h = new YearHolder(year);
Year actual = binding.methodYear(sendValue, h);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodYear Exception caught: " + re );
}
try {
Month sendValue = null;
try {
month = new Month(8);
} catch (Exception e) {
}
MonthHolder h = new MonthHolder(month);
Month actual = binding.methodMonth(sendValue, h);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodMonth Exception caught: " + re );
}
try {
Day sendValue = null;
try {
day = new Day(26);
} catch (Exception e) {
}
DayHolder h = new DayHolder(day);
Day actual = binding.methodDay(sendValue, h);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodDay Exception caught: " + re );
}
try {
YearMonth sendValue = null;
try {
yearmonth = new YearMonth(1995,8);
} catch (Exception e) {
}
YearMonthHolder h = new YearMonthHolder(yearmonth);
YearMonth actual = binding.methodYearMonth(sendValue, h);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodYearMonth Exception caught: " + re );
}
try {
MonthDay sendValue = null;
try {
monthday = new MonthDay(8,26);
} catch (Exception e) {
}
MonthDayHolder h = new MonthDayHolder(monthday);
MonthDay actual = binding.methodMonthDay(sendValue, h);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodMonthDay Exception caught: " + re );
}
try {
String sendValue = "Sent String";
StringHolder sh = new StringHolder(sendValue);
String actual = binding.methodSoapString(sendValue, sh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapString Exception caught: " + re );
}
try {
java.lang.Boolean sendValue = new java.lang.Boolean(true);
BooleanWrapperHolder bh = new BooleanWrapperHolder(sendValue);
java.lang.Boolean actual = binding.methodSoapBoolean(sendValue, bh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapBoolean Exception caught: " + re );
}
try {
java.lang.Float sendValue = new java.lang.Float(93049.0394F);
FloatWrapperHolder fh = new FloatWrapperHolder(sendValue);
java.lang.Float actual = binding.methodSoapFloat(sendValue, fh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapFloat Exception caught: " + re );
}
try {
java.lang.Double sendValue = new java.lang.Double(193049.0394D);
DoubleWrapperHolder dh = new DoubleWrapperHolder(sendValue);
java.lang.Double actual = binding.methodSoapDouble(sendValue, dh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapDouble Exception caught: " + re );
}
try {
java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");
BigDecimalHolder bdh = new BigDecimalHolder(sendValue);
java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );
}
try {
java.lang.Integer sendValue = new java.lang.Integer(94);
IntegerWrapperHolder ich = new IntegerWrapperHolder(sendValue);
java.lang.Integer actual = binding.methodSoapInt(sendValue, ich);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapInt Exception caught: " + re );
}
try {
java.lang.Short sendValue = new java.lang.Short((short) 5);
ShortWrapperHolder sch = new ShortWrapperHolder(sendValue);
java.lang.Short actual = binding.methodSoapShort(sendValue, sch);
} catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("methodSoapShort Exception caught: " + re );
}
}
}
|