Re: How to specifiy default values in WCF web services (repost)



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


.



Relevant Pages

  • Re: REST, SOAP, approaches to web connectivity
    ... Novell system after the BP IBM crew had told the client it ... as independent of the interface from the language to the DBMS. ...
    (comp.databases.pick)
  • Re: Advice Needed...
    ... and lower a dead language, but if it works for you and your clients, I don't ... | line) for a client in VB4.0 16 bit using Access databases. ... With Windows Vista, ... | standard panel or frame controls work perfectly. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB.net and ASP.Net Typed Datasets
    ... upgraded the "backend" or data layer to SQL Server 2005. ... For these reasons we wish to use ASP.net, to have a Smart Client. ... inadequacies with the web controls and the winform. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VB.net and ASP.Net Typed Datasets
    ... be as robust as it can be if you build the app with Windows ... inadequacies with the web controls and the winform. ... The web forms controls must render to the client as standard ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VB.net and ASP.Net Typed Datasets
    ... you can host Windows Forms via an ASP.NET web page. ... For these reasons we wish to use ASP.net, to have a Smart Client. ... inadequacies with the web controls and the winform. ... used in any .NET language. ...
    (microsoft.public.dotnet.framework.adonet)

Loading