HighTechTalks DotNet Forums  

Re: web service proxy problem

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: web service proxy problem in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Andrew Jackson
 
Posts: n/a

Default Re: web service proxy problem - 03-07-2007 , 05:37 AM






I found a solution from information gleamed from this page:
http://www.vmware.com/community/thre...ssageID=581599

cheers
Andrew


"Andrew Jackson" <ajackson (AT) eccc (DOT) co.za> wrote

Quote:
Hi all...

My app is a .net2 winforms app written in c# using visual studio 2005.

I have added a web reference to (what I consider) a fairly large web
service. When I try to use the web service in my client application via
the
autogenerated proxy class, the first time I instanciate my proxy class, it
take almost 3 minutes for the call to complete. all subsequent calls are
instant. this delay is before any actual calls to the web methods.

e.g:

WsProxy.JourneyDataServices proxy = new WsProxy.JourneyDataServices();
--
this line causes the problem
WsProxy.Customer[] items = proxy.GetCustomers();

I can load the webservice url in a browser and have noticed no problems
there (database connection is working, no obvious security problems, etc)

I understand that the first time the proxy call is called it might cause a
small delay because of JIT compilations and serializers, etc but is 3
minutes really a realistic time for this process? I have tried running
sgen.exe on my assembly but it did not seem to product any significant
reduction. maybe i'm doing something wrong?

Any ideas anyone?

Thanks,
Andrew





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.