I bet you have a data contract that has the actual int property:
public int YourProperty ......
as well as the YourPropertySpecified property next to it:
public bool YourPropertySpecified ......
Since int cannot be null, WCF cannot tell if you have defined a value or not, you need to say that.
So, if you use the int property and set the value for it, you also need to set the accompanying property YourPropertySpecified to true:
yourData.YourProperty = 42; yourData.YourPropertySpecified = true;
With this extra step, int values ββshould appear on the server just fine
source share