Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - asp.net wcf client

 
 
Old 03-17-2007   #1 (permalink)
nyhetsgrupper@gmail.com


 
 

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


 
 

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


 
 

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


 
 

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


 
 

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 SpecsSystem Spec
 

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


Vista Forums 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 Ltd

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