![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | asp.net wcf client What is the best method to invoke a WCF method from an asp.net web page? (serverside). I create a wcf proxy class using the svcutil program. In the page_load method of the website I create an instance of this class. The I can access the wcf methods. Is this the prefered way to do it? It seems like there is much overhead by creating an instance of the proxy class for every page refresh. Thank you! |
| | #2 (permalink) |
| Guest | Re: asp.net wcf client Hello, nyhetsgrupper@gmail.com! Is there the need to invoke service methods on every Page_Load? You can limit the overhead if you create that proxy only in the time when you need the up-to-date information from the service. You wrote on 17 Mar 2007 10:49:01 -0700: n> What is the best method to invoke a WCF method from an asp.net web n> page? (serverside). I create a wcf proxy class using the svcutil n> program. In the page_load method of the website I create an instance n> of this class. The I can access the wcf methods. Is this the prefered n> way to do it? It seems like there is much overhead by creating an n> instance of the proxy class for every page refresh. n> Thank you! With best regards, Vadym Stetsyak. Blog: http://vadmyst.blogspot.com |
| | #3 (permalink) |
| Guest | Re: asp.net wcf client On 19 Mar, 14:40, "Vadym Stetsyak" <vady...@ukr.net> wrote: > Hello, nyhetsgrup...@gmail.com! > > Is there the need to invoke service methods on every Page_Load? > > You can limit the overhead if you create that proxy only in the time when > you need the up-to-date information from the service. > > You wrote on 17 Mar 2007 10:49:01 -0700: > > n> What is the best method to invoke a WCF method from an asp.net web > n> page? (serverside). I create a wcf proxy class using the svcutil > n> program. In the page_load method of the website I create an instance > n> of this class. The I can access the wcf methods. Is this the prefered > n> way to do it? It seems like there is much overhead by creating an > n> instance of the proxy class for every page refresh. > > n> Thank you! > > With best regards, Vadym Stetsyak. > Blog:http://vadmyst.blogspot.com Yes, it is important that if the user choose to update the page he will get up to date data. |
| | #4 (permalink) |
| Guest | Re: asp.net wcf client Hello, nyhetsgrupper@gmail.com! Did you measure the overhead of proxy creation? For instance if proxy is created in 0.1 second and service call takes 2 seconds, then IMO there is no problem creating client proxy. Another way is to create special manager that will cache that proxy client. You wrote on 19 Mar 2007 08:19:18 -0700: n> On 19 Mar, 14:40, "Vadym Stetsyak" <vady...@ukr.net> wrote: ??>> Hello, nyhetsgrup...@gmail.com! ??>> ??>> Is there the need to invoke service methods on every Page_Load? ??>> ??>> You can limit the overhead if you create that proxy only in the time ??>> when you need the up-to-date information from the service. You wrote ??>> on 17 Mar 2007 10:49:01 -0700: n>>> What is the best method to invoke a WCF method from an asp.net web n>>> page? (serverside). I create a wcf proxy class using the svcutil n>>> program. In the page_load method of the website I create an instance n>>> of this class. The I can access the wcf methods. Is this the prefered n>>> way to do it? It seems like there is much overhead by creating an n>>> instance of the proxy class for every page refresh. ??>> n>>> Thank you! ??>> ??>> With best regards, Vadym Stetsyak. ??>> Blog:http://vadmyst.blogspot.com With best regards, Vadym Stetsyak. Blog: http://vadmyst.blogspot.com |
| | #5 (permalink) |
| Guest | RE: asp.net wcf client How do you invoke WCF service from ASP.NET web page ? Please tell me like step-by-step. Thanks. "nyhetsgrupper@gmail.com" wrote: > What is the best method to invoke a WCF method from an asp.net web > page? (serverside). I create a wcf proxy class using the svcutil > program. In the page_load method of the website I create an instance > of this class. The I can access the wcf methods. Is this the prefered > way to do it? It seems like there is much overhead by creating an > instance of the proxy class for every page refresh. > > Thank you! > > |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 64 bit VPN client | R | Vista General | 3 | 07-01-2008 08:54 AM |
| RTC Client API | vcsr | Vista General | 0 | 01-03-2008 06:21 PM |
| SIP Client for IM | Frank | Vista General | 2 | 03-28-2007 01:08 PM |
| DNS Client | MICHAEL | Vista General | 8 | 07-13-2006 10:40 PM |