davidlowry
Programmer
Hi All,
New to this forum, hoping it can of some use!! Appreciate any help you can give.
I'm calling a webservice with C Sharp, and I have a few optional parameters, for example I want to see either/or:
<ng1:defaultAmount>50</ng1:defaultAmount>
<ng1:endDueDate>13-12-2009</ng1:endDuedate>
I have defaultAmount set to a String (System.Nullable<String>) so that whenever it is null the tag will not show in the output xml, however it appears that decimals (which defaultAmount 'should' be) and dates (as endDueDate still is) will not just disappear when the values are null, instead they show:
<ng1:endDueDate xsi:nil="true" />
Can anyone point me in a direction that will magically make this 'xsi:nil="true"' 'feature' disappear!?
Thanks!
All the best
Dave
New to this forum, hoping it can of some use!! Appreciate any help you can give.
I'm calling a webservice with C Sharp, and I have a few optional parameters, for example I want to see either/or:
<ng1:defaultAmount>50</ng1:defaultAmount>
<ng1:endDueDate>13-12-2009</ng1:endDuedate>
I have defaultAmount set to a String (System.Nullable<String>) so that whenever it is null the tag will not show in the output xml, however it appears that decimals (which defaultAmount 'should' be) and dates (as endDueDate still is) will not just disappear when the values are null, instead they show:
<ng1:endDueDate xsi:nil="true" />
Can anyone point me in a direction that will magically make this 'xsi:nil="true"' 'feature' disappear!?
Thanks!
All the best
Dave