<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/190713.aspx</link><pubDate>Thu, 19 Mar 2009 11:10:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:190713</guid><dc:creator>ctsraj</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/190713.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=190713</wfw:commentRss><description>&lt;p&gt;Please check the result&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; client_GetCitationCollectionCompleted(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;GetCitationCollectionCompletedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&amp;nbsp;&lt;/p&gt;&amp;nbsp;&amp;nbsp; &lt;font size="2"&gt;diseaseEvent(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;sender&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DiseaseEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(e.OMID)); &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;}&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;OMID is the &amp;quot;out&amp;quot; Parameter in my WCF Service.&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/138423.aspx</link><pubDate>Thu, 27 Nov 2008 09:48:53 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:138423</guid><dc:creator>venkatgude</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/138423.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=138423</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How to pass ref paramer from silver light application to webservice.&lt;/p&gt;
&lt;p&gt;I declared a method Test(string s ,ref string test)&lt;/p&gt;
&lt;p&gt;How to call this method from silverlight&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Venkat&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38810.aspx</link><pubDate>Wed, 19 Mar 2008 09:36:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38810</guid><dc:creator>Allen Chen – MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38810.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38810</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I tested it and it works fine. I guess what you really need is ref instead of out? Try this:&lt;/p&gt;
&lt;p&gt;GetData(int id,&amp;nbsp;&lt;strong&gt;ref &lt;/strong&gt;object test)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38798.aspx</link><pubDate>Wed, 19 Mar 2008 08:42:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38798</guid><dc:creator>dotnetmac</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38798.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38798</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;First of all the method in SL application doesn&amp;#39;t even ask the out parameter.&lt;/p&gt;
&lt;p&gt;Say i have a service method GetData(int id, out object test), when i add a service reference, the parameters asked are just the id but not the out parameter.&lt;/p&gt;</description></item><item><title>Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38784.aspx</link><pubDate>Wed, 19 Mar 2008 07:18:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38784</guid><dc:creator>Allen Chen – MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38784.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38784</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; If you use output parameters GetDataCompletedEventArgs will have relevant property for you to use. Say the parameter is called param1 you can retrieve it via:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; void proxy_GetDataCompleted(object sender, SilverlightApplication1.ServiceReference1.GetDataCompletedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;//e.param1&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38123.aspx</link><pubDate>Mon, 17 Mar 2008 18:21:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38123</guid><dc:creator>SpoonStomper</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38123.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38123</wfw:commentRss><description>&lt;p&gt;This seems to be an odd situation, because looking at the References.cs for a webservice, the out parameter exists in the callbacks but not in the actual calls.&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38120.aspx</link><pubDate>Mon, 17 Mar 2008 17:56:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38120</guid><dc:creator>SpoonStomper</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38120.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38120</wfw:commentRss><description>&lt;p&gt;Hey dude,&lt;/p&gt;
&lt;p&gt;Oops, I wasn&amp;#39;t aware that the proxy could handle such a thing as an out parameter. Pretty cool. Is there a reason that you are writing so much code to access the webservice. Didn&amp;#39;t Visual Studio create a proxy class that you can instantiate and call methods on?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;StompIt!&lt;/p&gt;</description></item><item><title>Re: Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38102.aspx</link><pubDate>Mon, 17 Mar 2008 17:01:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38102</guid><dc:creator>dotnetmac</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38102.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38102</wfw:commentRss><description>&lt;p&gt;Hey dude,&lt;/p&gt;
&lt;p&gt;The web service is in production environment, so i cannot change it. Please tell me how to pass an out parameter from an SL application&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanx&lt;/p&gt;</description></item><item><title>Re: Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38066.aspx</link><pubDate>Mon, 17 Mar 2008 15:19:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38066</guid><dc:creator>SpoonStomper</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38066.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38066</wfw:commentRss><description>&lt;p&gt;The idea of an out parameter is that the method will instantiate the null reference that you pass in. A web service is stateless; therefore the handle that you have on an object that goes into a webservice as a parameter will not be the same as the one that makes it into the webservice server side. The nature of this prevents out parameters.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Instead: Create a return object that is composed of everything you need.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Stomp it!&lt;/p&gt;</description></item><item><title>Calling WCF Service with an out parameter</title><link>http://forums.silverlight.net/forums/thread/38008.aspx</link><pubDate>Mon, 17 Mar 2008 13:01:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38008</guid><dc:creator>dotnetmac</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38008.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38008</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;How do i call a WCF web service which has an out parameter,&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;My service has the following signature&lt;/p&gt;
&lt;p&gt;public List&amp;lt;Entity&amp;gt; ListAll(string languageID, out ResultObject resultObject) { }&lt;/p&gt;
&lt;p&gt;When i consume this service in my SL application (code below), i only get to pass the languageID not the&amp;nbsp;resultObject&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Binding&lt;/font&gt;&lt;font size="2"&gt; binding = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;BasicHttpBinding&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;EndpointAddress&lt;/font&gt;&lt;font size="2"&gt; address = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;EndpointAddress&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;http://localhost:5309/ContextManager/EntityService.svc&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;ContextManager.EntityService.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;EntityServiceClient&lt;/font&gt;&lt;font size="2"&gt; proxy = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; ListViewDataGrid.ContextManager.EntityService.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;EntityServiceClient&lt;/font&gt;&lt;font size="2"&gt;(binding, address);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;proxy.ListAllCompleted += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;EventHandler&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;ListViewDataGrid.ContextManager.EntityService.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;ListAllCompletedEventArgs&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;(proxy_ListAllCompleted);&lt;/p&gt;
&lt;p&gt;proxy.ListAllAsync(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;en-US&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;); // it is not asking for the ResultObject parameter.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;Thanx in advance&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>