Re: serialization
- From: "Andrew Brook" <ykoorb@xxxxxxxxxxx>
- Date: Tue, 1 Aug 2006 11:52:36 +0100
I haven't had to play around with serialization in a while, but i remember
something about only public member
variables being serialized, it looks like you only have public properties
based on private member variables so no data would be serialized (unless i'm
remembering incorrectly, and it wouldn't be the first time :)
Andrew
"Techno_Dex" <nospamchurst@xxxxxxxxxxxx> wrote in message
news:%23KVWl9NtGHA.4748@xxxxxxxxxxxxxxxxxxxxxxx
The class looks fine. What are you using to Serialize the code when you
pass it across the wire? Do any of your property values contain
characters that would mess up the WebService serialization?
"douglas wittner" <dwittner@xxxxxxxxxxxxxxxxxxx> wrote in message
news:uQKqHzLtGHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
i am not sure if this is the correct place to post this; but can anyone
tell me why this class would not be serializable?
i can persist this in a blob so i am confident it would be serializable.
when i access via a web service i get:
"The 'taxValues' is of type TaxOutput, which does not support
serialization."
any help is great!
doug
[Serializable]
public class TaxOutput
{
private double _StateTax;
private double _CityTax;
private double _CountyTax;
private double _DistrictTax;
private double _totalTax;
private double _totalTaxRate;
private double _CityTaxRate;
private double _CountyTaxRate;
private double _StateTaxRate;
private double _DistrictTaxRate;
public double CityTax
{
get
{
return _CityTax;
}
set
{
_CityTax = value;
}
}
public double CountyTax
{
get
{
return _CountyTax;
}
set
{
_CountyTax = value;
}
}
public double DistrictTax
{
get
{
return _DistrictTax;
}
set
{
_DistrictTax = value;
}
}
public double StateTax
{
get
{
return _StateTax;
}
set
{
_StateTax = value;
}
}
public double TotalTax
{
get
{
return _totalTax;
}
set
{
_totalTax = value;
}
}
public double TotalTaxRate
{
get
{
return _totalTaxRate;
}
set
{
_totalTaxRate = value;
}
}
public double CityTaxRate
{
get
{
return _CityTaxRate;
}
set
{
_CityTaxRate = value;
}
}
public double CountyTaxRate
{
get
{
return _CountyTaxRate;
}
set
{
_CountyTaxRate = value;
}
}
public double DistrictTaxRate
{
get
{
return _DistrictTaxRate;
}
set
{
_DistrictTaxRate = value;
}
}
public double StateTaxRate
{
get
{
return _StateTaxRate;
}
set
{
_StateTaxRate = value;
}
}
}
.
- Follow-Ups:
- Re: serialization
- From: Techno_Dex
- Re: serialization
- References:
- serialization
- From: douglas wittner
- Re: serialization
- From: Techno_Dex
- serialization
- Prev by Date: Re: Web service fails to run on Windows 2003
- Next by Date: Re: How to use HastTable in WebService
- Previous by thread: Re: serialization
- Next by thread: Re: serialization
- Index(es):
Relevant Pages
|