Re: How to specifiy default values in WCF web services (repost)
- From: "Dave Burns" <dburns@xxxxxxxxxxxxxxxx>
- Date: Thu, 17 Jul 2008 08:31:21 -0500
Language defaults don't work for me, because they are not logical defaults.
The [EmitDefaultValue=false] only works for microsoft clients using svcutil
generated proxy file, correct? What if it's a Java client consuming my WCF
service? How can I be sure that what came over the wire is a language
default value or my logical default value?
Here's a concrete example:
I have a property called PerfectPrintAngle, it's an integer.
Its logical default value is -1, which tells the web service not to use
PerfectPrintAngle (valid values are from 0 to 359)
Its language default value is 0, which is in the correct range.
So if it comes in over the wire as 0 (language default), the web service has
no way of telling whether this was defaulted on the client side or actually
set to 0 by the client program.
I hope I am explaining this correctly!
Thanks, Dave
.
- Follow-Ups:
- Re: How to specifiy default values in WCF web services (repost)
- From: Steven Cheng [MSFT]
- Re: How to specifiy default values in WCF web services (repost)
- References:
- How to specifiy default values in WCF web services (repost)
- From: Dave Burns
- RE: How to specifiy default values in WCF web services (repost)
- From: Steven Cheng [MSFT]
- How to specifiy default values in WCF web services (repost)
- Prev by Date: RE: How to Authenticate to WCF Service Via VPN
- Next by Date: Re: WCF Web Service VS 2008
- Previous by thread: RE: How to specifiy default values in WCF web services (repost)
- Next by thread: Re: How to specifiy default values in WCF web services (repost)
- Index(es):
Relevant Pages
|
Loading