Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2007

Tip: Looking for answers? Try searching our database.

Problem with instanciating proxy class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Jackson - 19 Feb 2007 06:59 GMT
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
Andrew Brook - 19 Feb 2007 10:26 GMT
Perhaps the webservice is to blame for the delay?
If the webservice shuts down after a period of innactivty, and if it does a
lot of work on startup (caching data etc).

> Hi all...
>
[quoted text clipped - 26 lines]
> Thanks,
> Andrew
Andrew Jackson - 07 Mar 2007 10:36 GMT
I found a solution from information gleamed from this page:
http://www.vmware.com/community/thread.jspa?messageID=581599

cheers
Andrew

> Hi all...
>
[quoted text clipped - 26 lines]
> Thanks,
> Andrew

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.