views:

46

answers:

1

Suppose i have a service, where i give some input , and i am setting the properties of Name and Age as Nothing Name and Age are nullable types. Now as Name and Age are nothing i do not want a xml tag generated in the output.But below xml tags are generated with nil=true.

 <Name xsi:nil="true"/> 
 <Age xsi:nil="true"/>
+1  A: 

You can control the way WCF serialize objects. Take a look here here

Boris Modylevsky
That is correct. It sounds like a good answer.
Arturo Caballero