473,623 Members | 2,447 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 2842
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
1723
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 information will be used to initiate either a MS Word or MS Excel document. The applications (Word & Excel) reside on the users local system but the database is on the server. Since it is for internal company use I'm not too concerned about...
1
6728
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 this WebService1. (using Apache Axis 1.1) Scenario 1: -----------
0
2787
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 My Restrictions: - The WebService is pure Java, running under WebSphere5.1 - The Request requires Basic Authentication and needs to be SSL
3
3554
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 looks like the data is not transferred to the asp page from the web service. just after going to internet option -> security -> Custom level -> Access data sources across domains -> and check the enable radio -> the problem is fixed. I need a...
7
4977
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 Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
3
9074
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
6
8961
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 difficult task? Or is this quite easy, like just a few lines of source and using some of the packages from apache.org? Has anybody done this before and will like to tell me about his/her experiences?
1
4031
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 provided with a set of Dll that implement the proxy needed to consume this web service. I'm now wrapping these dlls in a .Net webservice that can be consumed with Visual studio the familliar way.
2
4023
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 XmlHttpRequest object, but it appears that I can't just run the webservice using because the calling javascript doesn't know about the client proxy js right? So how do you do this if you want to call the webservice from a javascript
4
2147
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 developed on VS.NET 2005. The client is a seperate project developed in VS.NET 2005 which uses (in the project using a webreference) the webservice LogService.
0
8231
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8168
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8614
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4075
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2603
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 we have to send another system
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.