473,327 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

persisent timeout problem consuming webservice

Hello,

I have a problem in a C# client that consumes a webservice which is wrapped
by WSE 2.0 sp3:

The WebService works fine but very rarely my client comes in a state where
every call to the webservice results in a timeout exception. Meanwhile all my
other internet traffic passes normally so the problem implicitly exists
between my client and the WebService.

The problem is solved as soon as the client is restarted.

I have two questions:
1. What can cause this problem?
2. What is the best way to solve this?

kind regards

--
rvangeldrop
Mar 30 '06 #1
7 1761
Hi,

This problem might be complex. It can be caused by many resons. The most
probable reason, is because the internet traffic. It might be on either the
server side or the client side. Also, there might be too many people
accessing that web service, and make the server unable to respond in time.

It's hard to say which one is the cause, you have to do more research on
it. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Mar 31 '06 #2
Hello Kevin,

I fully understand the 'toughness' of the situation. Therefore I provide you
with more information.

1. De problem is definitely client side. The server immediately picks up on
the restarted client application. Also sometimes a part of our client
software is capable of communicating with the server. Also requests from the
client do not arrive at the server at all.

2. Meanwhile I tried tearing down and rebuilding the reference to the
WebService as soon as this problem occurs. Currently the client opens a
single proxy class reference for all requests. Do you know of best practises
in this?

Kind regards,

"Kevin Yu [MSFT]" wrote:
Hi,

This problem might be complex. It can be caused by many resons. The most
probable reason, is because the internet traffic. It might be on either the
server side or the client side. Also, there might be too many people
accessing that web service, and make the server unable to respond in time.

It's hard to say which one is the cause, you have to do more research on
it. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Mar 31 '06 #3
Hi,

1. This can also be the network issue. Because the network can go bad in
different period. When certain client goes wrong, it might be the network
problem. When it restarts, the network is good again. So, I still can't
decide the cause of the problem.

2. The best practice for creating the proxy class is to use VS.NET IDE's
Add Web Reference, and let it generate the proxy class for you. As far as I
know, it generates a proxy class for each .asmx file.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Apr 4 '06 #4
Hello Kevin,

1. Is there possibly anti-DoS or fair-use logic in firewall and security
software of Windows XP?

2. My question on best practise is how to treat this proxy class. Must I
create an object ref for every transaction to the server or can I pool it or
can I keep a persistent object ref?

Kind regards,
Robbert
--
rvangeldrop
"Kevin Yu [MSFT]" wrote:
Hi,

1. This can also be the network issue. Because the network can go bad in
different period. When certain client goes wrong, it might be the network
problem. When it restarts, the network is good again. So, I still can't
decide the cause of the problem.

2. The best practice for creating the proxy class is to use VS.NET IDE's
Add Web Reference, and let it generate the proxy class for you. As far as I
know, it generates a proxy class for each .asmx file.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Apr 7 '06 #5
Hi Robbert,

1. Yes, this might be the firewall issue. But I can't be sure.
2. The the proxy object is actually a connection to the web service.
Whether to pool it depends on your app. Generally, I suggest you use a new
object to release the resources, if it is not called again and again. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Apr 10 '06 #6
Hello Kevin,

I now changed our code that it will tear down the webservice object
reference and create a new one as soon as succesive time-outs occur. The
frequency of persistent time-outs decreased but some clients still have them.

So far this is acceptable, but the issue is not solved. Please keep me
up-to-date if similar issues are posted...

Kind regards
--
rvangeldrop
"Kevin Yu [MSFT]" wrote:
Hi Robbert,

1. Yes, this might be the firewall issue. But I can't be sure.
2. The the proxy object is actually a connection to the web service.
Whether to pool it depends on your app. Generally, I suggest you use a new
object to release the resources, if it is not called again and again. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Apr 25 '06 #7
Hi,

If there is similar issue, and I find a resolution, I will let you know.

Kevin Yu
Microsoft Online Community Support

================================================== ==========================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ==========================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 27 '06 #8

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

Similar topics

1
by: Grant Merwitz | last post by:
Hi I am running a rather large method through a webservice. Now, i keep getting a timeout. I've found an article which seems to be the solution, but cannot for the life of me figure out how...
3
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. ...
2
by: peterlan | last post by:
Hi, this is a follow-up to my previous post. I've got a long-running function exposed as a web service. It can take up to 3 or 4 minutes to complete (rendering a 300 page pdf from xsl-fo). I have...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
2
by: David G | last post by:
My company has a Webservice that is currently running in production. It is secured using SSL and clients are authenticated using X509 certificates. I am able to consume the Webservice methods in...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
1
by: nano2k | last post by:
Hi I have a pretty serious problem. I have developed a winforms app that calls a webservice using .NET Framework 1.1 with C#, IIS 5.1. and SQL Server 2000 server. After installing the WS, I...
4
by: Simon | last post by:
I would like to know how to set the timeout for System.Web.Services.WebService class (from which my web service is derived)? According to documentation there should be Timeout property, but I can...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.