Re: How to specifiy default values in WCF web services (repost)
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Tue, 22 Jul 2008 09:40:08 GMT
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Dave,
\par
\par Have you got any progress on this or still any further questions or anything we can help?
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par \pard\li720 --------------------
\par
\par From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
\par Organization: Microsoft
\par Date: Fri, 18 Jul 2008 06:55:07 GMT
\par Subject: Re: How to specifiy default values in WCF web services (repost)
\par
\par
\par Thanks for your reply Dave,
\par
\par I think I've got the actual issue you mentioned. Actually, you want to find some means to let the wcf client get informed of the certain default value for a certain field(no matter what programming platform the client is using). I'm afraid this is abit difficult since for default value, this is mostly a programming language layer feature, for example .net framework class can set default value for class members. The WCF or webservice are exposing service via WSDL/xml schema , it is difficult to let XML description to force the client side programming platform generate code which follow a logical rule. So far I haven't found such a means in xml schema. For example, you can add some xml annotation/comments to indicate the client side that what's the expected value/default value for the certain field, however, it is still depend on the client-side's proxy implementation (whether it adopt the annotation or WSDL description or not).
\par
\par So far I think the most guranteed means is still make sure both sides using .net framework (actually this is the preferred approach for WCF ) so that we can enforce such logical rules via code level definition such as default value (or constructor initialization).
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par \pard\li1440 --------------------
\par
\par }
- 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]
- Re: 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: Securing WCF with enableWebScript
- Next by Date: Re: Set WebService Namespace attribute at runtime
- Previous by thread: Re: How to specifiy default values in WCF web services (repost)
- Next by thread: WSE 3.0 Interoperability with client platform and technologies
- Index(es):
Relevant Pages
|