473,586 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web service timeout issue. please help.

Hi,

I have a web client code written in C# and I am using web services
using the proxy created by VS2005. Only timeout I am using this case
is the SOAP envelop timeout. When I run the code it is keeping timing
out. Could someone tell me what could be the reasons? [One side note
a
new server is added to the pool and this code didn't change for
couple
of months and its been working properly till a week ago, there is
nothing changed during that week though]. Here is the code snippet
that is failing
private void CIn()
{
taskComplete = false;
ServiceWse wse = new ServiceWse();
wse.UseDefaultC redentials = false;
SoapContext ctx = wse.RequestSoap Context;
ctx.Security.To kens.Add(token) ;
ctx.Security.El ements.Add(new MessageSignatur e(token));
ctx.Security.Ti mestamp.TtlInSe conds = _Timeout;
AppSettingsRead er config = new AppSettingsRead er();
Uri dest = new
Uri(config.GetV alue(ReferenceN ames.WebService URI,
typeof(string)) .ToString());
Uri via = new Uri(config.GetV alue(WSELocatio n(),
typeof(string)) .ToString());
ctx.Addressing. Destination = new EndpointReferen ce(dest,
via);
byte[] fileContents = File.ReadAllByt es(aDirectory =
zFileName);
try
{
wse.CIn(a, y, t, x, R, fileContents);
taskComplete = true;
}
catch (System.Web.Ser vices.Protocols .SoapException
e1)
{
log.Fatal(" failed " + e1.ToString());
}
catch (Exception e1)
{
log.Fatal(" failed " + e1.ToString());
}
}
else
{
log.Fatal("Unab le to file");
}
}

Jan 31 '07 #1
0 1065

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

Similar topics

10
6855
by: greenb | last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call several stored procedures back to back to perform updates. They don't return any data. Sometimes the total execution time can take 2-3 minutes, but even though I have set the executionTimeout in web.config to a high number of seconds (2400), the request will still...
3
9068
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...
1
10416
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying connection was closed: An unexpected error occurred on a receive. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest...
3
2209
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service interruption. Basically what I'm missing is how do we re-expose a remote object when assembly has changed, and this without any interruption to the...
0
4515
by: archana | last post by:
Hi all I am facing some wierd problem at a time of calling web method of web service through windows application. At a time of calling one web method of web service after some amount of time i am getting following error :- Process failed. Reason :- The request failed with HTTP status 504: Proxy Timeout ( This operation returned because...
0
925
by: Paul.Net | last post by:
Hi I can access a web service from the from a website on 1.1 frame work but I am not able to access the web service from a website on 2.0 framework. Both the web sites are on the same box running win 2000 server. I tried impersination and that did not work too. The page errors out with the follwoing stack trace
1
3682
by: Sergey Krutous | last post by:
Can you please help me to resolve the following issue: I developed a windows service. At start up (I have overriden OnStart method) it connects to a web service and if the connection fails the windows service sets ExitCode property to non-zero value (55) and calls Stop method. If this happens when user starts the service in Services snap-in...
3
6606
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
0
8262
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported the console application to WinForms and also got that to work properly. My next move was to host the WCF service in a Windows service application....
5
1521
by: Peter | last post by:
I have a webpage which creates reports, a report can take few seconds or several minutes to create. This webpage calls a web service which in turn does a remoting call to a windows service and the service creates the report. My question is if a user cancels or closes the browser before the report is completed, but windows service is still...
0
7911
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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...
0
8200
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
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...
0
3836
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...
1
1448
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.