| 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; |
| 66 |
import javax.xml.rpc.ServiceException; |
| 67 |
import javax.xml.rpc.holders.BigDecimalHolder; |
| 68 |
import javax.xml.rpc.holders.BigIntegerHolder; |
| 69 |
import javax.xml.rpc.holders.BooleanHolder; |
| 70 |
import javax.xml.rpc.holders.BooleanWrapperHolder; |
| 71 |
import javax.xml.rpc.holders.ByteArrayHolder; |
| 72 |
import javax.xml.rpc.holders.ByteHolder; |
| 73 |
import javax.xml.rpc.holders.CalendarHolder; |
| 74 |
import javax.xml.rpc.holders.DoubleHolder; |
| 75 |
import javax.xml.rpc.holders.DoubleWrapperHolder; |
| 76 |
import javax.xml.rpc.holders.FloatHolder; |
| 77 |
import javax.xml.rpc.holders.FloatWrapperHolder; |
| 78 |
import javax.xml.rpc.holders.IntHolder; |
| 79 |
import javax.xml.rpc.holders.IntegerWrapperHolder; |
| 80 |
import javax.xml.rpc.holders.LongHolder; |
| 81 |
import javax.xml.rpc.holders.ObjectHolder; |
| 82 |
import javax.xml.rpc.holders.QNameHolder; |
| 83 |
import javax.xml.rpc.holders.ShortHolder; |
| 84 |
import javax.xml.rpc.holders.ShortWrapperHolder; |
| 85 |
import javax.xml.rpc.holders.StringHolder; |
| 86 |
import java.util.Calendar; |
| 87 |
import java.util.Date; |
| 88 |
|
| 89 |
public class VerifyTestCase extends junit.framework.TestCase { |
| 90 |
public VerifyTestCase(String 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 { |
| 104 |
TypeTest binding; |
| 105 |
try { |
| 106 |
binding = new TypeTestServiceLocator().getTypeTest(); |
| 107 |
} |
| 108 |
catch (ServiceException 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 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("5"), |
| 153 |
0, |
| 154 |
(long) 0, |
| 155 |
(short) 0, |
| 156 |
new java.math.BigDecimal(6), |
| 157 |
(float) 0, |
| 158 |
(double) 0, |
| 159 |
true, |
| 160 |
(byte) 0, |
| 161 |
new QName("hi", "ho"), |
| 162 |
Calendar.getInstance(), |
| 163 |
new byte[]{(byte) 5}, |
| 164 |
new byte[]{(byte) 6}, |
| 165 |
"hi ho", |
| 166 |
new Boolean(true), |
| 167 |
new Float(0), |
| 168 |
new Double(0), |
| 169 |
new java.math.BigDecimal(7), |
| 170 |
new Integer(0), |
| 171 |
new Short((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 re) { |
| 190 |
throw new junit.framework.AssertionFailedError("allPrimitives: " + re ); |
| 191 |
} |
| 192 |
try { |
| 193 |
binding.allPrimitivesInout( |
| 194 |
new StringHolder("hi"), |
| 195 |
new BigIntegerHolder(new java.math.BigInteger("0")), |
| 196 |
new IntHolder(1), |
| 197 |
new LongHolder(2), |
| 198 |
new ShortHolder((short) 3), |
| 199 |
new BigDecimalHolder(new java.math.BigDecimal(4)), |
| 200 |
new FloatHolder(5), |
| 201 |
new DoubleHolder(6), |
| 202 |
new BooleanHolder(true), |
| 203 |
new ByteHolder((byte) 7), |
| 204 |
new QNameHolder(new QName("ho", "hi")), |
| 205 |
new CalendarHolder(Calendar.getInstance()), |
| 206 |
new ByteArrayHolder(new byte[]{(byte) 8}), |
| 207 |
new ByteArrayHolder(new byte[]{(byte) 9}), |
| 208 |
new StringHolder("ho hi"), |
| 209 |
new BooleanWrapperHolder(new Boolean(true)), |
| 210 |
new FloatWrapperHolder(new Float(10)), |
| 211 |
new DoubleWrapperHolder(new Double(11)), |
| 212 |
new BigDecimalHolder(new java.math.BigDecimal(12)), |
| 213 |
new IntegerWrapperHolder(new Integer(13)), |
| 214 |
new ShortWrapperHolder(new Short((short) 14)), |
| 215 |
new ByteArrayHolder(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 re) { |
| 233 |
throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re ); |
| 234 |
} |
| 235 |
try { |
| 236 |
binding.allPrimitivesOut( |
| 237 |
new StringHolder(), |
| 238 |
new BigIntegerHolder(), |
| 239 |
new IntHolder(), |
| 240 |
new LongHolder(), |
| 241 |
new ShortHolder(), |
| 242 |
new BigDecimalHolder(), |
| 243 |
new FloatHolder(), |
| 244 |
new DoubleHolder(), |
| 245 |
new BooleanHolder(), |
| 246 |
new ByteHolder(), |
| 247 |
new QNameHolder(), |
| 248 |
new CalendarHolder(), |
| 249 |
new ByteArrayHolder(), |
| 250 |
new ByteArrayHolder(), |
| 251 |
new StringHolder(), |
| 252 |
new BooleanWrapperHolder(), |
| 253 |
new FloatWrapperHolder(), |
| 254 |
new DoubleWrapperHolder(), |
| 255 |
new BigDecimalHolder(), |
| 256 |
new IntegerWrapperHolder(), |
| 257 |
new ShortWrapperHolder(), |
| 258 |
new ByteArrayHolder(), |
| 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 re) { |
| 277 |
throw new junit.framework.AssertionFailedError("allPrimitivesOut Exception caught: " + re ); |
| 278 |
} |
| 279 |
try { |
| 280 |
binding.enumIn(Enum.one); |
| 281 |
} catch (java.rmi.RemoteException 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 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 re) { |
| 293 |
throw new junit.framework.AssertionFailedError("enumOut Exception caught: " + re ); |
| 294 |
} |
| 295 |
try { |
| 296 |
Enum value = null; |
| 297 |
value = binding.enumReturn(); |
| 298 |
} catch (java.rmi.RemoteException re) { |
| 299 |
throw new junit.framework.AssertionFailedError("enumReturn Exception caught: " + re ); |
| 300 |
} |
| 301 |
try { |
| 302 |
binding.arrayIn(new String[] {"hi", "ho"}); |
| 303 |
} catch (java.rmi.RemoteException re) { |
| 304 |
throw new junit.framework.AssertionFailedError("arrayIn Exception caught: " + re); |
| 305 |
} |
| 306 |
try { |
| 307 |
binding.arrayInout(new ArrayHolder(new String[] {"hee", "hee"})); |
| 308 |
} catch (java.rmi.RemoteException 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 re) { |
| 315 |
throw new junit.framework.AssertionFailedError("arrayOut Exception caught: " + re); |
| 316 |
} |
| 317 |
try { |
| 318 |
String[] value = binding.arrayReturn(); |
| 319 |
} catch (java.rmi.RemoteException 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 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 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 re) { |
| 336 |
throw new junit.framework.AssertionFailedError("arrayMOut Exception caught: " + re); |
| 337 |
} |
| 338 |
try { |
| 339 |
int[][][] value = binding.arrayMReturn(); |
| 340 |
} catch (java.rmi.RemoteException 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 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 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 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 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 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 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 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 re) { |
| 394 |
throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re ); |
| 395 |
} |
| 396 |
String[] optArray = new String[] {"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 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 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 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 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 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 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 re) { |
| 457 |
throw new junit.framework.AssertionFailedError("emptyComplexTypeReturn Exception caught: " + re ); |
| 458 |
} |
| 459 |
try { |
| 460 |
binding.anyIn(new java.lang.String("hi ho")); |
| 461 |
} catch (java.rmi.RemoteException re) { |
| 462 |
throw new junit.framework.AssertionFailedError("anyIn Exception caught: " + re ); |
| 463 |
} |
| 464 |
try { |
| 465 |
binding.anyInout(new ObjectHolder(new java.lang.String("yo ho ho"))); |
| 466 |
} catch (java.rmi.RemoteException re) { |
| 467 |
throw new junit.framework.AssertionFailedError("anyInout Exception caught: " + re ); |
| 468 |
} |
| 469 |
try { |
| 470 |
ObjectHolder value = new ObjectHolder(); |
| 471 |
binding.anyOut(value); |
| 472 |
} catch (java.rmi.RemoteException re) { |
| 473 |
throw new junit.framework.AssertionFailedError("anyOut Exception caught: " + re ); |
| 474 |
} |
| 475 |
try { |
| 476 |
java.lang.Object value = binding.anyReturn(); |
| 477 |
} catch (java.rmi.RemoteException 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 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 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 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 re) { |
| 508 |
throw new junit.framework.AssertionFailedError("animalReturn Exception caught: " + re ); |
| 509 |
} |
| 510 |
try { |
| 511 |
binding.catIn(cat); |
| 512 |
} catch (java.rmi.RemoteException 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 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 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 re) { |
| 530 |
throw new junit.framework.AssertionFailedError("catReturn Exception caught: " + re ); |
| 531 |
} |
| 532 |
try { |
| 533 |
binding.catIn(persion); |
| 534 |
} catch (java.rmi.RemoteException 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 re) { |
| 540 |
throw new junit.framework.AssertionFailedError("catInout Exception caught: " + re ); |
| 541 |
} |
| 542 |
|
| 543 |
try { |
| 544 |
BooleanHolder bh = new BooleanHolder(true); |
| 545 |
boolean actual = binding.methodBoolean(true, bh); |
| 546 |
} catch (java.rmi.RemoteException 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 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 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 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 re) { |
| 571 |
throw new junit.framework.AssertionFailedError("methodLong Exception caught: " + re ); |
| 572 |
} |
| 573 |
try { |
| 574 |
FloatHolder fh = new FloatHolder(2.342F); |
| 575 |
float delta = 0.0F; |
| 576 |
float actual = binding.methodFloat(2.342F, fh); |
| 577 |
} catch (java.rmi.RemoteException re) { |
| 578 |
throw new junit.framework.AssertionFailedError("methodFloat Exception caught: " + re ); |
| 579 |
} |
| 580 |
try { |
| 581 |
DoubleHolder dh = new DoubleHolder(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 re) { |
| 586 |
throw new junit.framework.AssertionFailedError("methodDouble Exception caught: " + re ); |
| 587 |
} |
| 588 |
try { |
| 589 |
String sendValue = "Sent String"; |
| 590 |
StringHolder sh = new StringHolder(sendValue); |
| 591 |
String actual = binding.methodString(sendValue, sh); |
| 592 |
} catch (java.rmi.RemoteException re) { |
| 593 |
throw new junit.framework.AssertionFailedError("methodString Exception caught: " + re ); |
| 594 |
} |
| 595 |
try { |
| 596 |
java.math.BigInteger sendValue = new java.math.BigInteger("3048"); |
| 597 |
BigIntegerHolder bih = new BigIntegerHolder(sendValue); |
| 598 |
java.math.BigInteger actual = binding.methodInteger(sendValue, bih); |
| 599 |
} catch (java.rmi.RemoteException re) { |
| 600 |
throw new junit.framework.AssertionFailedError("methodInteger Exception caught: " + re ); |
| 601 |
} |
| 602 |
try { |
| 603 |
java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258"); |
| 604 |
BigDecimalHolder bdh = new BigDecimalHolder(sendValue); |
| 605 |
java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh); |
| 606 |
} catch (java.rmi.RemoteException re) { |
| 607 |
throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re ); |
| 608 |
} |
| 609 |
try { |
| 610 |
Calendar sendValue = Calendar.getInstance(); |
| 611 |
sendValue.setTime(new Date(1012182070626L)); |
| 612 |
CalendarHolder ch = new CalendarHolder(sendValue); |
| 613 |
Calendar actual = binding.methodDateTime(sendValue, ch); |
| 614 |
} catch (java.rmi.RemoteException 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 sendValue = new QName("test1", "test2"); |
| 627 |
QNameHolder qh = new QNameHolder(sendValue); |
| 628 |
QName actual = binding.methodQName(sendValue, qh); |
| 629 |
} catch (java.rmi.RemoteException 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 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 e) { |
| 652 |
} |
| 653 |
UnsignedLongHolder ch = new UnsignedLongHolder(sendValue); |
| 654 |
UnsignedLong actual = binding.methodUnsignedLong(sendValue, ch); |
| 655 |
} catch (java.rmi.RemoteException 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 e) { |
| 663 |
} |
| 664 |
UnsignedIntHolder ch = new UnsignedIntHolder(sendValue); |
| 665 |
UnsignedInt actual = binding.methodUnsignedInt(sendValue, ch); |
| 666 |
} catch (java.rmi.RemoteException 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 e) { |
| 674 |
} |
| 675 |
UnsignedShortHolder ch = new UnsignedShortHolder(sendValue); |
| 676 |
UnsignedShort actual = binding.methodUnsignedShort(sendValue, ch); |
| 677 |
} catch (java.rmi.RemoteException 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 e) { |
| 685 |
} |
| 686 |
UnsignedByteHolder ch = new UnsignedByteHolder(sendValue); |
| 687 |
UnsignedByte actual = binding.methodUnsignedByte(sendValue, ch); |
| 688 |
} catch (java.rmi.RemoteException 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 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 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 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 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 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 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 e) { |
| 744 |
} |
| 745 |
YearHolder h = new YearHolder(year); |
| 746 |
Year actual = binding.methodYear(sendValue, h); |
| 747 |
} catch (java.rmi.RemoteException 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 e) { |
| 756 |
} |
| 757 |
MonthHolder h = new MonthHolder(month); |
| 758 |
Month actual = binding.methodMonth(sendValue, h); |
| 759 |
} catch (java.rmi.RemoteException 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 e) { |
| 768 |
} |
| 769 |
DayHolder h = new DayHolder(day); |
| 770 |
Day actual = binding.methodDay(sendValue, h); |
| 771 |
} catch (java.rmi.RemoteException 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 e) { |
| 780 |
} |
| 781 |
YearMonthHolder h = new YearMonthHolder(yearmonth); |
| 782 |
YearMonth actual = binding.methodYearMonth(sendValue, h); |
| 783 |
} catch (java.rmi.RemoteException 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 e) { |
| 792 |
} |
| 793 |
MonthDayHolder h = new MonthDayHolder(monthday); |
| 794 |
MonthDay actual = binding.methodMonthDay(sendValue, h); |
| 795 |
} catch (java.rmi.RemoteException re) { |
| 796 |
throw new junit.framework.AssertionFailedError("methodMonthDay Exception caught: " + re ); |
| 797 |
} |
| 798 |
|
| 799 |
try { |
| 800 |
String sendValue = "Sent String"; |
| 801 |
StringHolder sh = new StringHolder(sendValue); |
| 802 |
String actual = binding.methodSoapString(sendValue, sh); |
| 803 |
} catch (java.rmi.RemoteException re) { |
| 804 |
throw new junit.framework.AssertionFailedError("methodSoapString Exception caught: " + re ); |
| 805 |
} |
| 806 |
try { |
| 807 |
java.lang.Boolean sendValue = new java.lang.Boolean(true); |
| 808 |
BooleanWrapperHolder bh = new BooleanWrapperHolder(sendValue); |
| 809 |
java.lang.Boolean actual = binding.methodSoapBoolean(sendValue, bh); |
| 810 |
} catch (java.rmi.RemoteException re) { |
| 811 |
throw new junit.framework.AssertionFailedError("methodSoapBoolean Exception caught: " + re ); |
| 812 |
} |
| 813 |
try { |
| 814 |
java.lang.Float sendValue = new java.lang.Float(93049.0394F); |
| 815 |
FloatWrapperHolder fh = new FloatWrapperHolder(sendValue); |
| 816 |
java.lang.Float actual = binding.methodSoapFloat(sendValue, fh); |
| 817 |
} catch (java.rmi.RemoteException re) { |
| 818 |
throw new junit.framework.AssertionFailedError("methodSoapFloat Exception caught: " + re ); |
| 819 |
} |
| 820 |
try { |
| 821 |
java.lang.Double sendValue = new java.lang.Double(193049.0394D); |
| 822 |
DoubleWrapperHolder dh = new DoubleWrapperHolder(sendValue); |
| 823 |
java.lang.Double actual = binding.methodSoapDouble(sendValue, dh); |
| 824 |
} catch (java.rmi.RemoteException re) { |
| 825 |
throw new junit.framework.AssertionFailedError("methodSoapDouble Exception caught: " + re ); |
| 826 |
} |
| 827 |
try { |
| 828 |
java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258"); |
| 829 |
BigDecimalHolder bdh = new BigDecimalHolder(sendValue); |
| 830 |
java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh); |
| 831 |
} catch (java.rmi.RemoteException re) { |
| 832 |
throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re ); |
| 833 |
} |
| 834 |
try { |
| 835 |
java.lang.Integer sendValue = new java.lang.Integer(94); |
| 836 |
IntegerWrapperHolder ich = new IntegerWrapperHolder(sendValue); |
| 837 |
java.lang.Integer actual = binding.methodSoapInt(sendValue, ich); |
| 838 |
} catch (java.rmi.RemoteException re) { |
| 839 |
throw new junit.framework.AssertionFailedError("methodSoapInt Exception caught: " + re ); |
| 840 |
} |
| 841 |
try { |
| 842 |
java.lang.Short sendValue = new java.lang.Short((short) 5); |
| 843 |
ShortWrapperHolder sch = new ShortWrapperHolder(sendValue); |
| 844 |
java.lang.Short actual = binding.methodSoapShort(sendValue, sch); |
| 845 |
} catch (java.rmi.RemoteException re) { |
| 846 |
throw new junit.framework.AssertionFailedError("methodSoapShort Exception caught: " + re ); |
| 847 |
} |
| 848 |
} |
| 849 |
} |
| 850 |
|