<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Remote Service Method Question</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Remote Service Method Question</description>
  <pubDate>Wed, 15 Apr 2026 08:43:18 -700</pubDate>
  <lastBuildDate>Tue, 28 Dec 2010 13:50:27 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2405</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Remote Service Method Question : Hi BillG;You can pass a complex...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2405&amp;PID=9495#9495</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2405<br /><strong>Posted:</strong> 28-Dec-2010 at 1:50pm<br /><br />Hi BillG;<div><br></div><div>You can pass a complex object to the InvokeServerMethodAsync method. The last argument that this method takes is params object&#091;&#093; so you can pass any number of object type.</div>]]>
   </description>
   <pubDate>Tue, 28 Dec 2010 13:50:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2405&amp;PID=9495#9495</guid>
  </item> 
  <item>
   <title>Remote Service Method Question : I am creating my first Remote...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2405&amp;PID=9492#9492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 2405<br /><strong>Posted:</strong> 28-Dec-2010 at 11:44am<br /><br />I am creating my first Remote Service Method and I want to make sure that I get the first one right as I will have about 5 of these in the app.<DIV>&nbsp;</DIV><DIV>I have a class named <FONT color=#ff0000>MemberBalanceCalculator</FONT>. The purpose of the class is to sift through all of a members assessments and payments and figure out a balance owing. </DIV><DIV>&nbsp;</DIV><DIV>The class is located in the <FONT color=#ff0000>LaborWareWeb</FONT> app and in a directory called <FONT color=#ff0000>RemoteCalls</FONT>.</DIV><DIV>&nbsp;</DIV><DIV>The method to call in the MemberBalanceCalculator is <FONT color=#ff0000>CalculateAmountOwing</FONT>.</DIV><DIV>&nbsp;</DIV><DIV>So what is the code going to look like on the client side? How can I pass a complex object to a Remote Service Method. I need to pass a member object or should I pass the string SSN and have the remote service method look up the member and read it into memory?</DIV><DIV>&nbsp;</DIV><DIV>public void CalculateBalance(string ssn)&nbsp;&nbsp; // what if I want to pass over the member object instead of just the ssn?</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string typeName = LaborWareWeb.RemoteCalls.MemberBalanceCalculator, LaborWareWeb";</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string methodName = "CalculateAmountOwing";</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var op = Mgr.InvokeServerMethodAsync(typeName, methodName, <SPAN style="COLOR: #0000ff">null</SPAN>, <SPAN style="COLOR: #0000ff">null</SPAN>, ssn);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op.Completed += (o, args) =&gt; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //refresh member object in memory to display the new updated values on the view.</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>Do I need to make any entries in the web config to tell it about this remote service method?</DIV><DIV>&nbsp;</DIV><DIV>Bill</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 28 Dec 2010 11:44:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2405&amp;PID=9492#9492</guid>
  </item> 
 </channel>
</rss>