File: Marshall2ServiceTestCase.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (715 lines) | stat: -rw-r--r-- 32,076 bytes parent folder | download | duplicates (10)
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
/**
 * Marshall2ServiceTestCase.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2RC3 Feb 14, 2005 (08:56:33 EST) WSDL2Java emitter.
 */

package test.wsdl.marshall2;

import org.apache.axis.Constants;

import javax.xml.namespace.QName;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.net.URI;

import test.wsdl.marshall2.types.JavaBean;
import test.wsdl.marshall2.types.JavaBean2;

public class Marshall2ServiceTestCase extends junit.framework.TestCase {
    public Marshall2ServiceTestCase(java.lang.String name) {
        super(name);
    }

    public void testMarshall2PortWSDL() throws Exception {
        javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
        java.net.URL url = new java.net.URL(new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2PortAddress() + "?WSDL");
        javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.marshall2.Marshall2ServiceLocator().getServiceName());
        assertTrue(service != null);
    }

    public void test1Marshall2PortBigDecimalArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BigDecimalArrayTestResponse value = null;
        value = binding.bigDecimalArrayTest(new test.wsdl.marshall2.types.BigDecimalArrayTest(new BigDecimal[]{new BigDecimal("5.0"),
                                                                                                               new BigDecimal("3512359.1456"),
                                                                                                               new BigDecimal("3512360.1456"),
                                                                                                               null
                                                                                                               }));
    }

    public void test2Marshall2PortBigDecimalTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BigDecimalTestResponse value = null;
        value = binding.bigDecimalTest(new test.wsdl.marshall2.types.BigDecimalTest(new BigDecimal("5.0")));
        // TBD - validate results
    }

    public void test3Marshall2PortBigIntegerArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BigIntegerArrayTestResponse value = null;
        value = binding.bigIntegerArrayTest(new test.wsdl.marshall2.types.BigIntegerArrayTest(new BigInteger[]{new BigInteger("5"),
                                                                                              new BigInteger("3512359"),
                                                                                              new BigInteger("3512360"),
                                                                                              null
                                                                                            }));
        // TBD - validate results
    }

    public void test4Marshall2PortBigIntegerTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BigIntegerTestResponse value = null;
        value = binding.bigIntegerTest(new test.wsdl.marshall2.types.BigIntegerTest(new BigInteger("8")));
        // TBD - validate results
    }

    public void test5Marshall2PortBooleanArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BooleanArrayTestResponse value = null;
        value = binding.booleanArrayTest(new test.wsdl.marshall2.types.BooleanArrayTest(new boolean[]{true,false}));
        // TBD - validate results
    }

    public void test6Marshall2PortBooleanTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.BooleanTestResponse value = null;
        value = binding.booleanTest(new test.wsdl.marshall2.types.BooleanTest(true));
        // TBD - validate results
    }

    public void test7Marshall2PortByteArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.ByteArrayTestResponse value = null;
        value = binding.byteArrayTest(new test.wsdl.marshall2.types.ByteArrayTest("hello".getBytes()));
        // TBD - validate results
    }

    public void test8Marshall2PortByteTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.ByteTestResponse value = null;
        value = binding.byteTest(new test.wsdl.marshall2.types.ByteTest("x".getBytes()[0]));
        // TBD - validate results
    }

    public void test9Marshall2PortDoubleArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.DoubleArrayTestResponse value = null;
        value = binding.doubleArrayTest(new test.wsdl.marshall2.types.DoubleArrayTest(new double[]{4,5}));
        // TBD - validate results
    }

    public void test10Marshall2PortDoubleTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.DoubleTestResponse value = null;
        value = binding.doubleTest(new test.wsdl.marshall2.types.DoubleTest(4));
        // TBD - validate results
    }

    public void test11Marshall2PortFloatArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.FloatArrayTestResponse value = null;
        value = binding.floatArrayTest(new test.wsdl.marshall2.types.FloatArrayTest(new float[]{67,75}));
        // TBD - validate results
    }

    public void test12Marshall2PortFloatTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.FloatTestResponse value = null;
        value = binding.floatTest(new test.wsdl.marshall2.types.FloatTest(56));
        // TBD - validate results
    }

    public void test13Marshall2PortIntArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.IntArrayTestResponse value = null;
        value = binding.intArrayTest(new test.wsdl.marshall2.types.IntArrayTest(new int[]{3,4}));
        // TBD - validate results
    }

    public void test14Marshall2PortIntTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.IntTestResponse value = null;
        value = binding.intTest(new test.wsdl.marshall2.types.IntTest(3));
        // TBD - validate results
    }

    public void test15Marshall2PortLongArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.LongArrayTestResponse value = null;
        value = binding.longArrayTest(new test.wsdl.marshall2.types.LongArrayTest(new long[]{3,4}));
        // TBD - validate results
    }

    public void test16Marshall2PortLongTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.LongTestResponse value = null;
        value = binding.longTest(new test.wsdl.marshall2.types.LongTest(5467));
        // TBD - validate results
    }

    public void test17Marshall2PortShortArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.ShortArrayTestResponse value = null;
        value = binding.shortArrayTest(new test.wsdl.marshall2.types.ShortArrayTest(new short[]{(short)3,(short)4}));
        // TBD - validate results
    }

    public void test18Marshall2PortShortTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.ShortTestResponse value = null;
        value = binding.shortTest(new test.wsdl.marshall2.types.ShortTest((short)4));
        // TBD - validate results
    }

    public void test19Marshall2PortStringArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.StringArrayTestResponse value = null;
        value = binding.stringArrayTest(new test.wsdl.marshall2.types.StringArrayTest(new String[]{	"foo1",
                                                                                                    "foo2",
                                                                                                    "foo3",
                                                                                                    "",
                                                                                                    null
                                                                                                }));
        // TBD - validate results
    }

    public void test20Marshall2PortStringTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.StringTestResponse value = null;
        value = binding.stringTest(new test.wsdl.marshall2.types.StringTest("foo"));
        // TBD - validate results
    }

    public void test21Marshall2PortQnameTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.QNameTestResponse value = null;
        value = binding.qnameTest(new test.wsdl.marshall2.types.QNameTest(Constants.QNAME_FAULTDETAIL_HOSTNAME));
        // TBD - validate results
    }

    public void test22Marshall2PortQnameArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.QNameArrayTestResponse value = null;
        value = binding.qnameArrayTest(new test.wsdl.marshall2.types.QNameArrayTest(new QName[]{Constants.QNAME_FAULTDETAIL_HOSTNAME,Constants.QNAME_FAULTDETAIL_EXCEPTIONNAME,	new QName("someLocalPart"),
                                                                                                new QName("http://someURI.org/", "someLocalPart"),
                                                                                                null
                                                                                                }));
        // TBD - validate results
    }

    public void test23Marshall2PortCalendarArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.CalendarArrayTestResponse value = null;
        value = binding.calendarArrayTest(new test.wsdl.marshall2.types.CalendarArrayTest(new Calendar[]{Calendar.getInstance(),
                                                                                                         new GregorianCalendar(96,5,1),
                                                                                                         new GregorianCalendar(99,10,25),
                                                                                                         null
                                                                                                         }));
    }

    public void test24Marshall2PortCalendarTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.CalendarTestResponse value = null;
        value = binding.calendarTest(new test.wsdl.marshall2.types.CalendarTest(Calendar.getInstance()));
        // TBD - validate results
    }

    public void test25Marshall2PortJavaBeanArrayTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        JavaBean b = new JavaBean();
        b.setMyBigDecimal(new BigDecimal(4));
        b.setMyBigInteger(new BigInteger("5"));
        b.setMyBoolean(false);
        b.setMyByte((byte)0x1);
        b.setMyCalendar(Calendar.getInstance());
        b.setMyDouble(4);
        b.setMyFloat(5);
        b.setMyInt(6);
        b.setMyLong(3);
        b.setMyString("sdfsdf");
        b.setMyJavaBean(new JavaBean2(new BigDecimal(5),
                                      (double)5,
                                      (long)2,
                                      (short)1,
                                      (int)1,
                                      Calendar.getInstance(),
                                      (byte)0x1,
                                      true,
                                      "xxx",
                                      new BigInteger("4"),
                                      (float)3));

        JavaBean b2 = new JavaBean();
        b2.setMyBigDecimal(new BigDecimal(4));
        b2.setMyBigInteger(new BigInteger("5"));
        b2.setMyBoolean(false);
        b2.setMyByte((byte)0x1);
        b2.setMyCalendar(Calendar.getInstance());
        b2.setMyDouble(4);
        b2.setMyFloat(5);
        b2.setMyInt(6);
        b2.setMyLong(3);
        b2.setMyString("sdfsdf");
        b2.setMyJavaBean(new JavaBean2(new BigDecimal(5),
                                      (double)5,
                                      (long)2,
                                      (short)1,
                                      (int)1,
                                      Calendar.getInstance(),
                                      (byte)0x1,
                                      true,
                                      "xxx",
                                      new BigInteger("4"),
                                      (float)3));
        
        
        // Test operation
        test.wsdl.marshall2.types.JavaBeanArrayTestResponse value = null;
        value = binding.javaBeanArrayTest(new test.wsdl.marshall2.types.JavaBeanArrayTest(new JavaBean[]{b,b2}));
        // TBD - validate results
    }

    public void test26Marshall2PortJavaBeanTest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        JavaBean b = new JavaBean();
        b.setMyBigDecimal(new BigDecimal(4));
        b.setMyBigInteger(new BigInteger("5"));
        b.setMyBoolean(false);
        b.setMyByte((byte)0x1);
        b.setMyCalendar(Calendar.getInstance());
        b.setMyDouble(4);
        b.setMyFloat(5);
        b.setMyInt(6);
        b.setMyLong(3);
        b.setMyString("sdfsdf");
        b.setMyJavaBean(new JavaBean2(new BigDecimal(5),
                                      (double)5,
                                      (long)2,
                                      (short)1,
                                      (int)1,
                                      Calendar.getInstance(),
                                      (byte)0x1,
                                      true,
                                      "xxx",
                                      new BigInteger("4"),
                                      (float)3));
        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.JavaBeanTestResponse value = null;
        value = binding.javaBeanTest(new test.wsdl.marshall2.types.JavaBeanTest(b));
        // TBD - validate results
    }

    public void test27Marshall2PortAnyURITest() throws Exception {
        test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
        try {
            binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
                          new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        URI b = new URI("urn:something");
        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.marshall2.types.FooAnyURITypeResponse value = null;
        value = binding.fooAnyURITest(new test.wsdl.marshall2.types.FooAnyURIType(b));
        // TBD - validate results
    }
}