![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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! |
My System Specs![]() |
| | #2 (permalink) |
| | 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 |
My System Specs![]() |
| | #3 (permalink) |
| | 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. |
My System Specs![]() |
| | #4 (permalink) |
| | 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 |
My System Specs![]() |
| | #5 (permalink) |
| | 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! > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| RTC Client API | Vista General | |||
| SIP Client for IM | Vista General | |||
| DNS Client | Vista General | |||
| DNS Client | Vista networking & sharing | |||