Webservice Init

I have a webservice that seems to take a good 15 seconds or so to load initially when it's called.  Is there a way to load this when the application is started?  This also occurs after 5 minutes or so, so I'm assuming it's stored in the cache and deleted, then reinitialized.
LVL 11
thunderchickenAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
What happens if you create a small test application, like a WinForms client, and create an instance to the web server?  Does it take 15 seconds to create?

Bob
0
 
Bob LearnedCommented:
1) .NET version?

2) How extensive is the web service?

3) Are you doing anything special, or is it a straight-forward web service?

Bob
0
 
thunderchickenAuthor Commented:
1) 1.1
2) It's a rating algorithm for insurance
3) Not really, just passing in a business object

I'm not sure why it's taking so long to init, perhaps there's something in there that's messing it up.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Bob LearnedCommented:
Compiling the web service should be fairly quick, unless you are talking about a "monster" class that has 100's of methods.  Do you have any external references, such as DLLs?

Bob
0
 
thunderchickenAuthor Commented:
I added this webservice as a new project within the solution, then referenced the main project so I could access the classes when it's passed in.

I'm wondering if that has anything to do with it.
0
 
Bob LearnedCommented:
Ok, take a step back and give me the bigger picture:

1) Do you have something like a WinForms client hitting a web service?

2) Is it taking 15 seconds for the WinForms client to authenticate with and instantiate a web service instance?

Bob
0
 
thunderchickenAuthor Commented:
No, these are all web pages.
0
 
thunderchickenAuthor Commented:
I'll give it a shot, I didn't know if it was something easy or "normal", but I guess it's not (which is a good thing).
0
 
Bob LearnedCommented:
I have a web service that runs from a WinForms client, which gets creates in a second (more or less).  It is a Data Access Layer web service that wraps up access to an Oracle instance, without having to install the client on each and every workstation that needs access to the data.

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.