You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Magnus ?or Torfason <ma...@handtolvur.is> on 2001/04/03 12:08:01 UTC

[PATCH] Type Testcode (was: Re: char serializer/deserializer)

>
>
> Test code would be great.
>
> Alex Alvarez
>


Ok here is some test code on using types.  Setting up the
samples.typetest.TypeService enables the client to call functions to
retrieve a return parameter from the server of various types.  The types are
listed below.  In addition
to testing simple values of each type the service has a special method,
getCombination() which returns a Hashtable containing a combination of
Hashtables, Vectors ans Strings.  This should be of assistance in unearthing
any bugs in recursive marshalling/unmarshalling.

The test is structured after the StockQuoteService, and it should be
possible to drop it straight into the samples folder, after unzipping it.

All the tests except char work for me.  Feedback on how it works for others
would be great.

The types are the following:

byte
short
int
long
float
double
boolean
char
String
Vector
Hashtable


The methods to call are the following.

getByte
getShort
getInt
getLong
getFloat
getDouble
getBoolean
getChar
getString
getVector
getHashtable
getCombination

Magnus