473,508 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling webservice from 2.0 client

We have run into problems calling a web service from a client running .NET
framework 2.0. The problem is that the first call to the web service, after
the client has been started, takes very long time, something like 15 to 30
seconds. All subsequent calls are really fast (about 10 milliseconds). But
when the client is restarted, the first call once more takes long time.

We have been testing a few different scenarios to figure out what is
happening here, but the problem still puzzles us.

1. We start two instances of the same client application (.NET framework
2.0), A1 and A2 on the same machine. A1 is calling the web service and takes
long time. A1 is making another call, which goes fast. A2 is making its first
call to the web service, and it takes long time, A2 is making another call
which is fast.

2. We compile the same client in .NET framework 1.1 and start two instances
of that client (B1 and B2). All calls to the web service are really fast,
including the very first call!

3. We try running the 2.0 clients with different domain users. Here we find
a difference. Some users only need a fraction of a second to make the first
calls, while others need up to 30 seconds. The only difference to be found in
AD is that the “fast” users belong to only a few groups, while the “slow”
users belong to several groups (20-30).

Our conclusion is that the 2.0 clients are performing some sort of control
of the user running the client that is not performed by the 1.1 framework.

Is this conclusion correct? What is happening here? Is there a way to make a
2.0 client behave as the 1.1 clients? We are very grateful for any help!

Nov 2 '06 #1
2 2836
Johan,
The startup time for the first caller is just how ASP.NET based applications
work. The first call to an ASP.NET application causes a bunch of
infrastructure to come to life and that first call blocks until everything is
ready and the reply can be sent. The second call doesn't wait for all that
infrastructure (demand compilation, reading of config, setting up AppDomains,
reading IIS policy, etc.) and can respond much quicker. You will see
different behaviors depending on what version of IIS you are running and
should see the best performance on Win2K3 server/IIS 6.x.

If you could give some more details of your environment, such as OS, it
would be easier to make sense of what is going on.

"Johan" wrote:
We have run into problems calling a web service from a client running .NET
framework 2.0. The problem is that the first call to the web service, after
the client has been started, takes very long time, something like 15 to 30
seconds. All subsequent calls are really fast (about 10 milliseconds). But
when the client is restarted, the first call once more takes long time.

We have been testing a few different scenarios to figure out what is
happening here, but the problem still puzzles us.

1. We start two instances of the same client application (.NET framework
2.0), A1 and A2 on the same machine. A1 is calling the web service and takes
long time. A1 is making another call, which goes fast. A2 is making its first
call to the web service, and it takes long time, A2 is making another call
which is fast.

2. We compile the same client in .NET framework 1.1 and start two instances
of that client (B1 and B2). All calls to the web service are really fast,
including the very first call!

3. We try running the 2.0 clients with different domain users. Here we find
a difference. Some users only need a fraction of a second to make the first
calls, while others need up to 30 seconds. The only difference to be found in
AD is that the “fast” users belong to only a few groups, while the “slow”
users belong to several groups (20-30).

Our conclusion is that the 2.0 clients are performing some sort of control
of the user running the client that is not performed by the 1.1 framework.

Is this conclusion correct? What is happening here? Is there a way to make a
2.0 client behave as the 1.1 clients? We are very grateful for any help!
Nov 2 '06 #2
Scott, thank you for your reply. The service is actually running on IIS6 on
Win2k3. The clients are running on WinXP SP2.

We have made two versions of the server as well, one running on 1.1 and the
other on 2.0. These two versions behave in the same manner as previously
described.

We really do not think this has anything to do with the start-up of the web
service itself. For example, if we run one 2.0 client, the first call takes
long time, and the second call goes fast. If we then start a new client (the
old still running), the first call takes long time from this client. We are
also able to call a third time from the first client which gets a response
way before the first call from the second client returns.

Further, the phenomenon only shows with clients running on 2.0. The .NET
version of the web service does not seem to matter.

Hopefully these details could help finding the cause of our problems.

"Scott Seely" wrote:
Johan,
The startup time for the first caller is just how ASP.NET based applications
work. The first call to an ASP.NET application causes a bunch of
infrastructure to come to life and that first call blocks until everything is
ready and the reply can be sent. The second call doesn't wait for all that
infrastructure (demand compilation, reading of config, setting up AppDomains,
reading IIS policy, etc.) and can respond much quicker. You will see
different behaviors depending on what version of IIS you are running and
should see the best performance on Win2K3 server/IIS 6.x.

If you could give some more details of your environment, such as OS, it
would be easier to make sense of what is going on.

"Johan" wrote:
We have run into problems calling a web service from a client running .NET
framework 2.0. The problem is that the first call to the web service, after
the client has been started, takes very long time, something like 15 to 30
seconds. All subsequent calls are really fast (about 10 milliseconds). But
when the client is restarted, the first call once more takes long time.

We have been testing a few different scenarios to figure out what is
happening here, but the problem still puzzles us.

1. We start two instances of the same client application (.NET framework
2.0), A1 and A2 on the same machine. A1 is calling the web service and takes
long time. A1 is making another call, which goes fast. A2 is making its first
call to the web service, and it takes long time, A2 is making another call
which is fast.

2. We compile the same client in .NET framework 1.1 and start two instances
of that client (B1 and B2). All calls to the web service are really fast,
including the very first call!

3. We try running the 2.0 clients with different domain users. Here we find
a difference. Some users only need a fraction of a second to make the first
calls, while others need up to 30 seconds. The only difference to be found in
AD is that the “fast” users belong to only a few groups, while the “slow”
users belong to several groups (20-30).

Our conclusion is that the 2.0 clients are performing some sort of control
of the user running the client that is not performed by the 1.1 framework.

Is this conclusion correct? What is happening here? Is there a way to make a
2.0 client behave as the 1.1 clients? We are very grateful for any help!
Nov 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1717
by: Rob Kellow | last post by:
Hello, I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a SQL Server database and the rest of the...
1
6709
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
0
2770
by: Det | last post by:
Hi there I am somewhat stuck with calling a WebService from out of a VB App. My Goal: - Get a WebService invoked under MS - Access 2002, not using the MS-SOAP-Toolkit but the .net - Framework ...
3
3540
by: Merav Orion via .NET 247 | last post by:
I have a problem calling webservice from client side javascript. The javascript call the settimeout() method. when the user press submit button it ignore the press and keep refreshing the page. it...
7
4959
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
3
9051
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
6
8945
by: Sascha Schmidt | last post by:
Hi again! Well, the first part of my "mission" (calling remoting objects from a webservice) is solved. But there's another part: Calling this C#-Webservice from a java client. Is this a...
1
4014
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
2
4014
by: Frank | last post by:
Hi, Newbie wondering if it is possible to call an ASP.NET 2.0 WebService from javascript that isn't served up on the same server? For example, I would like to call the WebService using an...
4
2136
by: bjornms | last post by:
Hi, I have a question related to webservices on the Microsoft platform. Context: I have two projects. One is called LogService. The other is called client. The LogService is a C# webservice...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.