KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > types > VerifyTestCase


1 /**
2  * TypeTestServiceTestCase.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis Wsdl2java emitter.
6  */

7
8 package test.wsdl.types;
9
10 import org.apache.axis.holders.DayHolder;
11 import org.apache.axis.holders.MonthDayHolder;
12 import org.apache.axis.holders.MonthHolder;
13 import org.apache.axis.holders.NegativeIntegerHolder;
14 import org.apache.axis.holders.NonNegativeIntegerHolder;
15 import org.apache.axis.holders.NonPositiveIntegerHolder;
16 import org.apache.axis.holders.PositiveIntegerHolder;
17 import org.apache.axis.holders.TimeHolder;
18 import org.apache.axis.holders.URIHolder;
19 import org.apache.axis.holders.UnsignedByteHolder;
20 import org.apache.axis.holders.UnsignedIntHolder;
21 import org.apache.axis.holders.UnsignedLongHolder;
22 import org.apache.axis.holders.UnsignedShortHolder;
23 import org.apache.axis.holders.YearHolder;
24 import org.apache.axis.holders.YearMonthHolder;
25 import org.apache.axis.types.Day;
26 import org.apache.axis.types.Month;
27 import org.apache.axis.types.MonthDay;
28 import org.apache.axis.types.NegativeInteger;
29 import org.apache.axis.types.NonNegativeInteger;
30 import org.apache.axis.types.NonPositiveInteger;
31 import org.apache.axis.types.PositiveInteger;
32 import org.apache.axis.types.URI;
33 import org.apache.axis.types.URI.MalformedURIException;
34 import org.apache.axis.types.UnsignedByte;
35 import org.apache.axis.types.UnsignedInt;
36 import org.apache.axis.types.UnsignedLong;
37 import org.apache.axis.types.UnsignedShort;
38 import org.apache.axis.types.Year;
39 import org.apache.axis.types.YearMonth;
40 import test.wsdl.types.comprehensive_service.TypeTest;
41 import test.wsdl.types.comprehensive_service.TypeTestServiceLocator;
42 import test.wsdl.types.comprehensive_types.Animal;
43 import test.wsdl.types.comprehensive_types.Cat;
44 import test.wsdl.types.comprehensive_types.ComplexAll;
45 import test.wsdl.types.comprehensive_types.ComplexSequence;
46 import test.wsdl.types.comprehensive_types.ComplexWComplex;
47 import test.wsdl.types.comprehensive_types.EmptyComplexType;
48 import test.wsdl.types.comprehensive_types.Enum;
49 import test.wsdl.types.comprehensive_types.PersionCat;
50 import test.wsdl.types.comprehensive_types.Time;
51 import test.wsdl.types.comprehensive_types.Yarn;
52 import test.wsdl.types.comprehensive_types.ComplexWComplexStock_quote;
53 import test.wsdl.types.comprehensive_types.holders.AnimalHolder;
54 import test.wsdl.types.comprehensive_types.holders.ArrayHolder;
55 import test.wsdl.types.comprehensive_types.holders.ArrayMHolder;
56 import test.wsdl.types.comprehensive_types.holders.CatHolder;
57 import test.wsdl.types.comprehensive_types.holders.ComplexAllHolder;
58 import test.wsdl.types.comprehensive_types.holders.ComplexSequenceHolder;
59 import test.wsdl.types.comprehensive_types.holders.ComplexWComplexHolder;
60 import test.wsdl.types.comprehensive_types.holders.EmptyComplexTypeHolder;
61 import test.wsdl.types.comprehensive_types.holders.EnumHolder;
62 import test.wsdl.types.comprehensive_types2.A;
63 import test.wsdl.types.comprehensive_types2.B;
64
65 import javax.xml.namespace.QName JavaDoc;
66 import javax.xml.rpc.ServiceException JavaDoc;
67 import javax.xml.rpc.holders.BigDecimalHolder JavaDoc;
68 import javax.xml.rpc.holders.BigIntegerHolder JavaDoc;
69 import javax.xml.rpc.holders.BooleanHolder JavaDoc;
70 import javax.xml.rpc.holders.BooleanWrapperHolder JavaDoc;
71 import javax.xml.rpc.holders.ByteArrayHolder JavaDoc;
72 import javax.xml.rpc.holders.ByteHolder JavaDoc;
73 import javax.xml.rpc.holders.CalendarHolder JavaDoc;
74 import javax.xml.rpc.holders.DoubleHolder JavaDoc;
75 import javax.xml.rpc.holders.DoubleWrapperHolder JavaDoc;
76 import javax.xml.rpc.holders.FloatHolder JavaDoc;
77 import javax.xml.rpc.holders.FloatWrapperHolder JavaDoc;
78 import javax.xml.rpc.holders.IntHolder JavaDoc;
79 import javax.xml.rpc.holders.IntegerWrapperHolder JavaDoc;
80 import javax.xml.rpc.holders.LongHolder JavaDoc;
81 import javax.xml.rpc.holders.ObjectHolder JavaDoc;
82 import javax.xml.rpc.holders.QNameHolder JavaDoc;
83 import javax.xml.rpc.holders.ShortHolder JavaDoc;
84 import javax.xml.rpc.holders.ShortWrapperHolder JavaDoc;
85 import javax.xml.rpc.holders.StringHolder JavaDoc;
86 import java.util.Calendar JavaDoc;
87 import java.util.Date JavaDoc;
88
89 public class VerifyTestCase extends junit.framework.TestCase {
90     public VerifyTestCase(String JavaDoc name) {
91         super(name);
92     }
93
94     /* FIXME: RUNTIME WSDL broken.
95     public void testTypeTestWSDL() throws Exception {
96         javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
97         java.net.URL url = new java.net.URL(new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTestAddress() + "?WSDL");
98         javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getServiceName());
99         assertTrue(service != null);
100     }
101     */

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