silverlight - How to prevent 'Specified' properties being generated in WCF clients? -


i have 2 .net 3.5 wcf services build vs2008.

i have 2 wcf clients in silverlight consume these services. clients generated 'add service reference'. using silverlight 4.

one of proxies generated specified properties each property. 'message-in' class service method :

    // properties generated each of these fields     private long customerprofileidfield;             private bool customerprofileidfieldspecified;             private bool testenvfield;             private bool testenvfieldspecified; 

now other service (still silverlight client) not generate specified properties.

now don't care 'tenets of soa'. want rid of these damn properties because in context of i'm doing absolutely hate them.

there has difference between 2 services - don't want have rip them apart find out difference.

a similar question before had answer 'you cant it' - not true because have - don't know did differently.

edit: in situation regenerate silverlight 4 proxy 3.5 wcf service (all on same localhost machine) 'specified' properties , don't. no longer think (as suspected originally) due solely endpoint configuration or service level [attribute]. theres triggers in message cause specified generated (or not). there may many factors involved or may simple.

try in wcf service property declared

[datamember(isrequired=true)] public bool testenvfield { get; set; } 

isrequired=true negate need testenvfieldspecified property


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -