KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > interop5 > basetype > BaseTypesInteropTestsTestCase


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

7
8 package test.wsdl.interop5.basetype;
9
10 import org.apache.axis.types.NMToken;
11 import org.apache.axis.types.NMTokens;
12 import org.apache.axis.types.IDRef;
13 import org.apache.axis.types.IDRefs;
14
15 import java.net.URL JavaDoc;
16
17 public class BaseTypesInteropTestsTestCase extends junit.framework.TestCase {
18     public static URL JavaDoc url = null;
19     
20     public static void main(String JavaDoc[] args) throws Exception JavaDoc {
21         if (args.length == 1) {
22             url = new URL JavaDoc(args[0]);
23         } else {
24             url = new URL JavaDoc(new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPortAddress());
25         }
26         junit.textui.TestRunner.run(new junit.framework.TestSuite(BaseTypesInteropTestsTestCase.class));
27     } // main
28

29     protected void setUp() throws Exception JavaDoc {
30         if (url == null) {
31             String JavaDoc urlStr = System.getProperty("testURL");
32             if (urlStr != null) {
33                 url = new URL JavaDoc(urlStr);
34             }
35         }
36         if(url == null) {
37             url = new URL JavaDoc(new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPortAddress());
38         }
39     }
40
41     public BaseTypesInteropTestsTestCase(java.lang.String JavaDoc name) {
42         super(name);
43     }
44
45     public void testInteropTestsPortWSDL() throws Exception JavaDoc {
46         javax.xml.rpc.ServiceFactory JavaDoc serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
47         java.net.URL JavaDoc url = new java.net.URL JavaDoc(new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPortAddress() + "?WSDL");
48         javax.xml.rpc.Service JavaDoc service = serviceFactory.createService(url, new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getServiceName());
49         assertTrue(service != null);
50     }
51
52     public void test1InteropTestsPortEchoDouble() throws Exception JavaDoc {
53         test.wsdl.interop5.basetype.InteropTestsExpType binding;
54         try {
55             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
56         }
57         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
58             if(jre.getLinkedCause()!=null)
59                 jre.getLinkedCause().printStackTrace();
60             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
61         }
62         assertTrue("binding is null", binding != null);
63
64         // Test operation
65
double value = -3;
66         value = binding.echoDouble(0);
67         // TBD - validate results
68
}
69
70     public void test2InteropTestsPortEchoDuration() throws Exception JavaDoc {
71         test.wsdl.interop5.basetype.InteropTestsExpType binding;
72         try {
73             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
74         }
75         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
76             if(jre.getLinkedCause()!=null)
77                 jre.getLinkedCause().printStackTrace();
78             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
79         }
80         assertTrue("binding is null", binding != null);
81
82         // Test operation
83
org.apache.axis.types.Duration value = null;
84         value = binding.echoDuration(new org.apache.axis.types.Duration());
85         // TBD - validate results
86
}
87
88     public void test3InteropTestsPortEchoDateTime() throws Exception JavaDoc {
89         test.wsdl.interop5.basetype.InteropTestsExpType binding;
90         try {
91             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
92         }
93         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
94             if(jre.getLinkedCause()!=null)
95                 jre.getLinkedCause().printStackTrace();
96             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
97         }
98         assertTrue("binding is null", binding != null);
99
100         // Test operation
101
java.util.Calendar JavaDoc value = null;
102         value = binding.echoDateTime(java.util.Calendar.getInstance());
103         // TBD - validate results
104
}
105
106     public void test4InteropTestsPortEchoTime() throws Exception JavaDoc {
107         test.wsdl.interop5.basetype.InteropTestsExpType binding;
108         try {
109             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
110         }
111         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
112             if(jre.getLinkedCause()!=null)
113                 jre.getLinkedCause().printStackTrace();
114             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
115         }
116         assertTrue("binding is null", binding != null);
117
118         // Test operation
119
org.apache.axis.types.Time value = null;
120         value = binding.echoTime(new org.apache.axis.types.Time("15:45:45.275Z"));
121         // TBD - validate results
122
}
123
124     public void test5InteropTestsPortEchoGYearMonth() throws Exception JavaDoc {
125         test.wsdl.interop5.basetype.InteropTestsExpType binding;
126         try {
127             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
128         }
129         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
130             if(jre.getLinkedCause()!=null)
131                 jre.getLinkedCause().printStackTrace();
132             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
133         }
134         assertTrue("binding is null", binding != null);
135
136         // Test operation
137
org.apache.axis.types.YearMonth value = null;
138         value = binding.echoGYearMonth(new org.apache.axis.types.YearMonth(2000,1));
139         // TBD - validate results
140
}
141
142     public void test6InteropTestsPortEchoGYear() throws Exception JavaDoc {
143         test.wsdl.interop5.basetype.InteropTestsExpType binding;
144         try {
145             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
146         }
147         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
148             if(jre.getLinkedCause()!=null)
149                 jre.getLinkedCause().printStackTrace();
150             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
151         }
152         assertTrue("binding is null", binding != null);
153
154         // Test operation
155
org.apache.axis.types.Year value = null;
156         value = binding.echoGYear(new org.apache.axis.types.Year(2000));
157         // TBD - validate results
158
}
159
160     public void test7InteropTestsPortEchoGMonthDay() throws Exception JavaDoc {
161         test.wsdl.interop5.basetype.InteropTestsExpType binding;
162         try {
163             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
164         }
165         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
166             if(jre.getLinkedCause()!=null)
167                 jre.getLinkedCause().printStackTrace();
168             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
169         }
170         assertTrue("binding is null", binding != null);
171
172         // Test operation
173
org.apache.axis.types.MonthDay value = null;
174         value = binding.echoGMonthDay(new org.apache.axis.types.MonthDay(1, 1));
175         // TBD - validate results
176
}
177
178     public void test8InteropTestsPortEchoGDay() throws Exception JavaDoc {
179         test.wsdl.interop5.basetype.InteropTestsExpType binding;
180         try {
181             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
182         }
183         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
184             if(jre.getLinkedCause()!=null)
185                 jre.getLinkedCause().printStackTrace();
186             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
187         }
188         assertTrue("binding is null", binding != null);
189
190         // Test operation
191
org.apache.axis.types.Day value = null;
192         value = binding.echoGDay(new org.apache.axis.types.Day(1));
193         // TBD - validate results
194
}
195
196     public void test9InteropTestsPortEchoGMonth() throws Exception JavaDoc {
197         test.wsdl.interop5.basetype.InteropTestsExpType binding;
198         try {
199             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
200         }
201         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
202             if(jre.getLinkedCause()!=null)
203                 jre.getLinkedCause().printStackTrace();
204             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
205         }
206         assertTrue("binding is null", binding != null);
207
208         // Test operation
209
org.apache.axis.types.Month value = null;
210         value = binding.echoGMonth(new org.apache.axis.types.Month(1));
211         // TBD - validate results
212
}
213
214     public void test10InteropTestsPortEchoAnyURI() throws Exception JavaDoc {
215         test.wsdl.interop5.basetype.InteropTestsExpType binding;
216         try {
217             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
218         }
219         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
220             if(jre.getLinkedCause()!=null)
221                 jre.getLinkedCause().printStackTrace();
222             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
223         }
224         assertTrue("binding is null", binding != null);
225
226         // Test operation
227
org.apache.axis.types.URI value = null;
228         value = binding.echoAnyURI(new org.apache.axis.types.URI("urn:testing"));
229         // TBD - validate results
230
}
231
232     public void test11InteropTestsPortEchoQName() throws Exception JavaDoc {
233         test.wsdl.interop5.basetype.InteropTestsExpType binding;
234         try {
235             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
236         }
237         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
238             if(jre.getLinkedCause()!=null)
239                 jre.getLinkedCause().printStackTrace();
240             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
241         }
242         assertTrue("binding is null", binding != null);
243
244         // Test operation
245
javax.xml.namespace.QName JavaDoc value = null;
246         value = binding.echoQName(new javax.xml.namespace.QName JavaDoc("http://double-double", "toil-and-trouble"));
247         // TBD - validate results
248
}
249
250     public void test12InteropTestsPortEchoNotation() throws Exception JavaDoc {
251         test.wsdl.interop5.basetype.InteropTestsExpType binding;
252         try {
253             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
254         }
255         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
256             if(jre.getLinkedCause()!=null)
257                 jre.getLinkedCause().printStackTrace();
258             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
259         }
260         assertTrue("binding is null", binding != null);
261
262         // Test operation
263
org.apache.axis.types.Notation value = null;
264         value = binding.echoNotation(new org.apache.axis.types.Notation());
265         // TBD - validate results
266
}
267
268     public void test13InteropTestsPortEchoLanguage() throws Exception JavaDoc {
269         test.wsdl.interop5.basetype.InteropTestsExpType binding;
270         try {
271             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
272         }
273         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
274             if(jre.getLinkedCause()!=null)
275                 jre.getLinkedCause().printStackTrace();
276             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
277         }
278         assertTrue("binding is null", binding != null);
279
280         // Test operation
281
org.apache.axis.types.Language value = null;
282         value = binding.echoLanguage(new org.apache.axis.types.Language());
283         // TBD - validate results
284
}
285
286     public void test14InteropTestsPortEchoNMToken() throws Exception JavaDoc {
287         test.wsdl.interop5.basetype.InteropTestsExpType binding;
288         try {
289             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
290         }
291         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
292             if(jre.getLinkedCause()!=null)
293                 jre.getLinkedCause().printStackTrace();
294             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
295         }
296         assertTrue("binding is null", binding != null);
297
298         // Test operation
299
org.apache.axis.types.NMToken value = null;
300         NMToken token = new NMToken();
301         token.setValue("eye_am_an_en_em_tokin");
302         value = binding.echoNMToken(token);
303         assertEquals(token, value);
304     }
305
306     public void test15InteropTestsPortEchoNMTokens() throws Exception JavaDoc {
307         test.wsdl.interop5.basetype.InteropTestsExpType binding;
308         try {
309             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
310         }
311         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
312             if(jre.getLinkedCause()!=null)
313                 jre.getLinkedCause().printStackTrace();
314             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
315         }
316         assertTrue("binding is null", binding != null);
317
318         // Test operation
319
org.apache.axis.types.NMTokens value = null;
320         NMTokens tokens = new NMTokens();
321         tokens.setValue("one two three");
322         value = binding.echoNMTokens(tokens);
323         assertEquals(tokens, value);
324     }
325
326     public void test16InteropTestsPortEchoName() throws Exception JavaDoc {
327         test.wsdl.interop5.basetype.InteropTestsExpType binding;
328         try {
329             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
330         }
331         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
332             if(jre.getLinkedCause()!=null)
333                 jre.getLinkedCause().printStackTrace();
334             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
335         }
336         assertTrue("binding is null", binding != null);
337
338         // Test operation
339
org.apache.axis.types.Name value = null;
340         value = binding.echoName(new org.apache.axis.types.Name());
341         // TBD - validate results
342
}
343
344     public void test17InteropTestsPortEchoNCName() throws Exception JavaDoc {
345         test.wsdl.interop5.basetype.InteropTestsExpType binding;
346         try {
347             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
348         }
349         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
350             if(jre.getLinkedCause()!=null)
351                 jre.getLinkedCause().printStackTrace();
352             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
353         }
354         assertTrue("binding is null", binding != null);
355
356         // Test operation
357
org.apache.axis.types.NCName value = null;
358         value = binding.echoNCName(new org.apache.axis.types.NCName());
359         // TBD - validate results
360
}
361
362     public void test18InteropTestsPortEchoID() throws Exception JavaDoc {
363         test.wsdl.interop5.basetype.InteropTestsExpType binding;
364         try {
365             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
366         }
367         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
368             if(jre.getLinkedCause()!=null)
369                 jre.getLinkedCause().printStackTrace();
370             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
371         }
372         assertTrue("binding is null", binding != null);
373
374         // Test operation
375
org.apache.axis.types.Id value = null;
376         value = binding.echoID(new org.apache.axis.types.Id());
377         // TBD - validate results
378
}
379
380     public void test19InteropTestsPortEchoIDREF() throws Exception JavaDoc {
381         test.wsdl.interop5.basetype.InteropTestsExpType binding;
382         try {
383             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
384         }
385         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
386             if(jre.getLinkedCause()!=null)
387                 jre.getLinkedCause().printStackTrace();
388             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
389         }
390         assertTrue("binding is null", binding != null);
391
392         // Test operation
393
org.apache.axis.types.IDRef value = null;
394         IDRef ref = new IDRef();
395         ref.setValue("THX1138");
396         value = binding.echoIDREF(ref);
397         assertEquals(ref, value);
398     }
399
400     public void test20InteropTestsPortEchoIDREFS() throws Exception JavaDoc {
401         test.wsdl.interop5.basetype.InteropTestsExpType binding;
402         try {
403             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
404         }
405         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
406             if(jre.getLinkedCause()!=null)
407                 jre.getLinkedCause().printStackTrace();
408             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
409         }
410         assertTrue("binding is null", binding != null);
411
412         // Test operation
413
org.apache.axis.types.IDRefs value = null;
414         IDRefs refs = new IDRefs();
415         refs.setValue("THX1138 R2D2 C3P0");
416         value = binding.echoIDREFS(refs);
417         assertEquals(refs, value);
418     }
419
420     public void test21InteropTestsPortEchoEntity() throws Exception JavaDoc {
421         test.wsdl.interop5.basetype.InteropTestsExpType binding;
422         try {
423             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
424         }
425         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
426             if(jre.getLinkedCause()!=null)
427                 jre.getLinkedCause().printStackTrace();
428             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
429         }
430         assertTrue("binding is null", binding != null);
431
432         // Test operation
433
org.apache.axis.types.Entity value = null;
434         value = binding.echoEntity(new org.apache.axis.types.Entity());
435         // TBD - validate results
436
}
437
438     public void test22InteropTestsPortEchoEntities() throws Exception JavaDoc {
439         test.wsdl.interop5.basetype.InteropTestsExpType binding;
440         try {
441             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
442         }
443         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
444             if(jre.getLinkedCause()!=null)
445                 jre.getLinkedCause().printStackTrace();
446             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
447         }
448         assertTrue("binding is null", binding != null);
449
450         // Test operation
451
org.apache.axis.types.Entities value = null;
452         value = binding.echoEntities(new org.apache.axis.types.Entities());
453         // TBD - validate results
454
}
455
456     public void test23InteropTestsPortEchoNonPositiveInteger() throws Exception JavaDoc {
457         test.wsdl.interop5.basetype.InteropTestsExpType binding;
458         try {
459             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
460         }
461         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
462             if(jre.getLinkedCause()!=null)
463                 jre.getLinkedCause().printStackTrace();
464             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
465         }
466         assertTrue("binding is null", binding != null);
467
468         // Test operation
469
org.apache.axis.types.NonPositiveInteger value = null;
470         value = binding.echoNonPositiveInteger(new org.apache.axis.types.NonPositiveInteger("0"));
471         // TBD - validate results
472
}
473
474     public void test24InteropTestsPortEchoNegativeInteger() throws Exception JavaDoc {
475         test.wsdl.interop5.basetype.InteropTestsExpType binding;
476         try {
477             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
478         }
479         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
480             if(jre.getLinkedCause()!=null)
481                 jre.getLinkedCause().printStackTrace();
482             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
483         }
484         assertTrue("binding is null", binding != null);
485
486         // Test operation
487
org.apache.axis.types.NegativeInteger value = null;
488         value = binding.echoNegativeInteger(new org.apache.axis.types.NegativeInteger("-1"));
489         // TBD - validate results
490
}
491
492     public void test25InteropTestsPortEchoLong() throws Exception JavaDoc {
493         test.wsdl.interop5.basetype.InteropTestsExpType binding;
494         try {
495             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
496         }
497         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
498             if(jre.getLinkedCause()!=null)
499                 jre.getLinkedCause().printStackTrace();
500             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
501         }
502         assertTrue("binding is null", binding != null);
503
504         // Test operation
505
long value = -3;
506         value = binding.echoLong(0);
507         // TBD - validate results
508
}
509
510     public void test26InteropTestsPortEchoInt() throws Exception JavaDoc {
511         test.wsdl.interop5.basetype.InteropTestsExpType binding;
512         try {
513             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
514         }
515         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
516             if(jre.getLinkedCause()!=null)
517                 jre.getLinkedCause().printStackTrace();
518             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
519         }
520         assertTrue("binding is null", binding != null);
521
522         // Test operation
523
int value = -3;
524         value = binding.echoInt(0);
525         // TBD - validate results
526
}
527
528     public void test27InteropTestsPortEchoShort() throws Exception JavaDoc {
529         test.wsdl.interop5.basetype.InteropTestsExpType binding;
530         try {
531             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
532         }
533         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
534             if(jre.getLinkedCause()!=null)
535                 jre.getLinkedCause().printStackTrace();
536             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
537         }
538         assertTrue("binding is null", binding != null);
539
540         // Test operation
541
short value = -3;
542         value = binding.echoShort((short)0);
543         // TBD - validate results
544
}
545
546     public void test28InteropTestsPortEchoByte() throws Exception JavaDoc {
547         test.wsdl.interop5.basetype.InteropTestsExpType binding;
548         try {
549             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
550         }
551         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
552             if(jre.getLinkedCause()!=null)
553                 jre.getLinkedCause().printStackTrace();
554             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
555         }
556         assertTrue("binding is null", binding != null);
557
558         // Test operation
559
byte value = -3;
560         value = binding.echoByte((byte)0);
561         // TBD - validate results
562
}
563
564     public void test29InteropTestsPortEchoNonNegativeInteger() throws Exception JavaDoc {
565         test.wsdl.interop5.basetype.InteropTestsExpType binding;
566         try {
567             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
568         }
569         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
570             if(jre.getLinkedCause()!=null)
571                 jre.getLinkedCause().printStackTrace();
572             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
573         }
574         assertTrue("binding is null", binding != null);
575
576         // Test operation
577
org.apache.axis.types.NonNegativeInteger value = null;
578         value = binding.echoNonNegativeInteger(new org.apache.axis.types.NonNegativeInteger("0"));
579         // TBD - validate results
580
}
581
582     public void test30InteropTestsPortEchoUnsignedLong() throws Exception JavaDoc {
583         test.wsdl.interop5.basetype.InteropTestsExpType binding;
584         try {
585             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
586         }
587         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
588             if(jre.getLinkedCause()!=null)
589                 jre.getLinkedCause().printStackTrace();
590             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
591         }
592         assertTrue("binding is null", binding != null);
593
594         // Test operation
595
org.apache.axis.types.UnsignedLong value = null;
596         value = binding.echoUnsignedLong(new org.apache.axis.types.UnsignedLong(0));
597         // TBD - validate results
598
}
599
600     public void test31InteropTestsPortEchoUnsignedInt() throws Exception JavaDoc {
601         test.wsdl.interop5.basetype.InteropTestsExpType binding;
602         try {
603             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
604         }
605         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
606             if(jre.getLinkedCause()!=null)
607                 jre.getLinkedCause().printStackTrace();
608             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
609         }
610         assertTrue("binding is null", binding != null);
611
612         // Test operation
613
org.apache.axis.types.UnsignedInt value = null;
614         value = binding.echoUnsignedInt(new org.apache.axis.types.UnsignedInt(0));
615         // TBD - validate results
616
}
617
618     public void test32InteropTestsPortEchoUnsignedShort() throws Exception JavaDoc {
619         test.wsdl.interop5.basetype.InteropTestsExpType binding;
620         try {
621             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
622         }
623         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
624             if(jre.getLinkedCause()!=null)
625                 jre.getLinkedCause().printStackTrace();
626             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
627         }
628         assertTrue("binding is null", binding != null);
629
630         // Test operation
631
org.apache.axis.types.UnsignedShort value = null;
632         value = binding.echoUnsignedShort(new org.apache.axis.types.UnsignedShort(0));
633         // TBD - validate results
634
}
635
636     public void test33InteropTestsPortEchoUnsignedByte() throws Exception JavaDoc {
637         test.wsdl.interop5.basetype.InteropTestsExpType binding;
638         try {
639             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
640         }
641         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
642             if(jre.getLinkedCause()!=null)
643                 jre.getLinkedCause().printStackTrace();
644             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
645         }
646         assertTrue("binding is null", binding != null);
647
648         // Test operation
649
org.apache.axis.types.UnsignedByte value = null;
650         value = binding.echoUnsignedByte(new org.apache.axis.types.UnsignedByte(0));
651         // TBD - validate results
652
}
653
654     public void test34InteropTestsPortEchoPositiveInteger() throws Exception JavaDoc {
655         test.wsdl.interop5.basetype.InteropTestsExpType binding;
656         try {
657             binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);
658         }
659         catch (javax.xml.rpc.ServiceException JavaDoc jre) {
660             if(jre.getLinkedCause()!=null)
661                 jre.getLinkedCause().printStackTrace();
662             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
663         }
664         assertTrue("binding is null", binding != null);
665
666         // Test operation
667
org.apache.axis.types.PositiveInteger value = null;
668         value = binding.echoPositiveInteger(new org.apache.axis.types.PositiveInteger("1"));
669         // TBD - validate results
670
}
671
672 }
673
Popular Tags