RE: WCF hosted in a webservice
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Mon, 14 Apr 2008 02:27:08 GMT
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 That's fine. Thanks for your response.
\par
\par Have a good day!
\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 \pard\li720 --------------------
\par
\par From: =?Utf-8?B?d2R1ZGVr?= <wdudek@xxxxxxxxxxxxxxxx>
\par References: <3217D9A5-0C90-455C-9C2F-B3D31541FDCE@xxxxxxxxxxxxx> <FUp1kT4mIHA.9932@xxxxxxxxxxxxxxxxxxxxxx>
\par Subject: RE: WCF hosted in a webservice
\par Date: Fri, 11 Apr 2008 07:42:01 -0700
\par
\par
\par Steven,
\par
\par Thanks, I don't need to get rid of the parameter, just wanted to
\par understand what it was so I can explain to the people writing the client apps
\par why they got it.
\par
\par Thanks again.
\par
\par "Steven Cheng [MSFT]" wrote:
\par
\par > Hi Bill,
\par >
\par > As for the additional "xxxSpecified" parameter, I think it is a webservice
\par > specific behavior for value type parameter/return value. For value type
\par > parameter in webservice, it support marking it as "nullable". However,
\par > since value type always contains a value, the .NET proxy generation will
\par > add an additional parameter for you to indicate whether this value has been
\par > set or not. You can try replace the "bool" type with another reference
\par > type such as string or a custom class .e .g.
\par >
\par > =================
\par > [OperationContract]
\par >
\par > MyResult CanRunRef(string AppName, string Username, string Function);
\par > .....................
\par > \}
\par >
\par >
\par > [DataContract]
\par > public class MyResult
\par > \{
\par > [DataMember]
\par > public bool CanRun;
\par > \}
\par > ================
\par >
\par > Then, the generated proxy method won't have that additional output
\par > parameter. For your scenario, I think you do not quite need to use it if
\par > the return value is always a valid/expected value. For more information
\par > about Nullable types in webservice, here is another form thread mentioned
\par > this:
\par >
\par > #Consuming WebService which returns NULL-values
\par > http://bytes.com/forum/thread375805.html
\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
\par > suggestions about how we can improve the support we provide to you. Please
\par > feel free to let my manager know what you think of the level of service
\par > provided. You can send feedback directly to my manager at:
\par > msdnmg@xxxxxxxxxxxxxx
\par >
\par > ==================================================
\par > Get notification to my posts through email? Please refer to
\par > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
\par > ications.
\par >
\par > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
\par > where an initial response from the community or a Microsoft Support
\par > Engineer within 1 business day is acceptable. Please note that each follow
\par > up response may take approximately 2 business days as the support
\par > professional working with you may need further investigation to reach the
\par > most efficient resolution. The offering is not appropriate for situations
\par > that require urgent, real-time or phone-based interactions or complex
\par > project analysis and dump analysis issues. Issues of this nature are best
\par > handled working with a dedicated Microsoft Support Engineer by contacting
\par > Microsoft Customer Support Services (CSS) at
\par > http://msdn.microsoft.com/subscriptions/support/default.aspx.
\par > ==================================================
\par > This posting is provided "AS IS" with no warranties, and confers no rights.
\par >
\par > --------------------
\par > Thread-Topic: WCF hosted in a webservice
\par > thread-index: AcibJIPR/116RF3rRpymhXG08ZjkVQ==
\par > X-WBNR-Posting-Host: 199.106.94.142
\par > From: =?Utf-8?B?d2R1ZGVr?= <wdudek@xxxxxxxxxxxxxxxx>
\par > Subject: WCF hosted in a webservice
\par > Date: Thu, 10 Apr 2008 09:04:11 -0700
\par >
\par > I have a web service hosting a WCF library, which works fine but produced a
\par > strange signature when interacting with vs 2005/2.0 clients. My method
\par > takes
\par > 3 strings and returns a bool as below.
\par >
\par > bool CanRun(string appName, string userName, string function);
\par >
\par > However the auto generated proxy in 2005 looks like this
\par >
\par > void CanRun(string appName, string userName, string function, out bool
\par > result, out bool resultSpecified);
\par >
\par > I unserstand the new result parameter, but what is the resultSpecified
\par > parameter that was created? It looks like it is always the same as the
\par > result
\par > parameter, although admittedly I haven't tested this very thouroughly yet?
\par > I'm pushing for WCF in our organization and don't want to get caught not
\par > haveing an explanation of what is occurring here.
\par >
\par > Thanks,
\par > Bill
\par >
\par \pard
\par
\par }
- References:
- WCF hosted in a webservice
- From: wdudek
- RE: WCF hosted in a webservice
- From: Steven Cheng [MSFT]
- RE: WCF hosted in a webservice
- From: wdudek
- WCF hosted in a webservice
- Prev by Date: RE: Web Services Question
- Next by Date: Re: Web Services Question
- Previous by thread: RE: WCF hosted in a webservice
- Next by thread: WCF Security mixed users
- Index(es):
Relevant Pages
|