Why ASMX-Style WebReferences to WCF Services Don’t serialize Numbers
Based on a casual googling of this problem, it appears that some developers have spent days trying to figure out why an integer they set on the generated proxy field comes over the wire into the actual WCF service as ZERO. I didn’t spend days figuring it out, but it certainly did cause no end of annoyance and cursing until I did. Let’s say you have a WCF service and for one reason or another (maybe your app is on a Handheld device and you cannot use “Add Service Reference”) you’ve set an ASMX – style “Add Web Reference”. Your code in the generated proxy Reference.cs class may look like this: public int Quantity { get { return this.quantityField; } ...