Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

asp.net wcf client

 
 
Thread Tools Display Modes
Old 03-17-2007   #1 (permalink)
nyhetsgrupper@gmail.com
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!

Old 03-19-2007   #2 (permalink)
Vadym Stetsyak
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


Old 03-19-2007   #3 (permalink)
nyhetsgrupper@gmail.com
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.

Old 03-20-2007   #4 (permalink)
Vadym Stetsyak
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


Old 04-14-2007   #5 (permalink)
Petchtykun
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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50