RE: Setting web service timeout in vb.net
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Mon, 07 Apr 2008 12:01:56 GMT
Hi Bob,
Have you any further question on this? If there is anything else we can
help, welcome to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
Organization: Microsoft
Date: Thu, 03 Apr 2008 01:27:24 GMT
Subject: RE: Setting web service timeout in vb.net
f
Thanks for your reply Bob,
I'm glad that you've got it working. As for the new question ( the
""Declaration expected" error) you mentioned, here is my understanding:
In your original code, you used the following statement:
AmiClmSvc_Proxy.Timeout = 60 * 60 * 1000 '60 minutes
Is "AmiClmSvc_Proxy" the class/type name of the webservice proxy?
If so, this is because "Timeout" is not a static(shared) property, but a
instance property. Therefore, you need to create/declare and instance of
the proxy type and assign this property through the instance. For example:
dim myproxy as New AmiClmSvc_Proxy
myproxy.Timeout = xxxxx
Hope this help further clarify it.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
ications.understand
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?Qm9iIENvbm5vbGx5?= <Bob Connolly@xxxxxxxxxxxxxxxx><zhnytl5kIHA.9288@xxxxxxxxxxxxxxxxxxxxxx>
References: <A14AA3D6-7CF1-4A60-B2E3-0244A1666654@xxxxxxxxxxxxx>
<40AC54C2-5330-4EAD-9BE6-9EDC8A03157E@xxxxxxxxxxxxx>
<FmFxpAGlIHA.3756@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Setting web service timeout in vb.net
Date: Wed, 2 Apr 2008 06:22:00 -0700
I was finally able to resolve this issue, though I do not fully
andwhy. When I originally coded as you suggested:
AmiClmSvc_Proxy.Timeout = 60 * 60 * 1000 '60 minutes
I got the errors that I described where I was not getting intellisense
basesyntax error: "Declaration expected". I was coding this statement at theissue
Module level directly under the dim statement where I defined the
AmiClmSvc_Proxy in the first place. I was finally able to resolve the
when I coded the above statement within a SUB within the module. Suddenlythe
intellisense started working and the timeout was changed. I don'tunderstand
why the statement would work in one place and not the other, but it does.for
Perhaps you can explain why? In any event, it is working and I thank you
your help.
--
Bob Connolly
"Steven Cheng [MSFT]" wrote:
Hi Bob,
Thanks for your reply.
Sorry for haven't clarified it. The "SoapHttpClientProtocol" is the
outorclass of the webservice proxy (you generate through "Add WebReference"
thewsdl.exe). Therefore, you can directly set this "Timeout" property on
client-side proxy. For example:
================
private void button2_Click(object sender, EventArgs e)
{
MyService.WebService myservice = new MyService.WebService();
myservice.Timeout = 1000 * 120;
string result = myservice.HelloWorld();
}
=================
also, you can manually open the auto-geneated proxy's code and found
f"SoapHttpClientProtocol":that your webservice proxy class is derived from
[System.Web.Services.WebServiceBindingAttribute(Name="WebServiceSoap",
============
[System.ComponentModel.DesignerCategoryAttribute("code")]
andNamespace="http://tempuri.org/")]
public partial class WebService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback
HelloWorldOperationCompleted;
===================
If there is still anything unclear, welcome to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
Pleasesuggestions about how we can improve the support we provide to you.
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifeel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
atrights.ications.
This posting is provided "AS IS" with no warranties, and confers no
a
--------------------
From: =?Utf-8?B?Qm9iIENvbm5vbGx5?= <Bob Connolly@xxxxxxxxxxxxxxxx><zhnytl5kIHA.9288@xxxxxxxxxxxxxxxxxxxxxx>
References: <A14AA3D6-7CF1-4A60-B2E3-0244A1666654@xxxxxxxxxxxxx>
Subject: RE: Setting web service timeout in vb.net
Date: Tue, 1 Apr 2008 08:57:02 -0700
SoapHttpClientProtocol.Timeout
I went to the link that you sent. It tells me: "we can configure the
webservice's method call Timeout through the
property"
How do I do this? It gives no specific directions and I could not find
programplace where I could set this property. If I just put a line in my
that says:
SoapHttpClientProtocol.Timeout = 100000
It give me a syntax error: "Declaration Expected"
--
Bob Connolly
"Steven Cheng [MSFT]" wrote:
Hi Bob,
As for the ASP.NET webservice, it has a "executionTimeout" setting
commentssecs:server-side which control the timeout behavior of the server-side
webservice request(also ASP.NET page request), default value is 110
value
#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx
Also, for .NET webservice client, the generated proxy (derived from
SoapHttpClientProtocol class) also has a timeout property(default
90
secs). The following thread has mentioned both of them:
#Timeout value at the client proxy
http://bytes.com/forum/thread427729.html
You can try setting them to see whehter it helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your
serviceand
Pleasesuggestions about how we can improve the support we provide to you.
feel free to let my manager know what you think of the level of
provided. You can send feedback directly to my manager at:
.
- Follow-Ups:
- RE: Setting web service timeout in vb.net
- From: Bob Connolly
- RE: Setting web service timeout in vb.net
- References:
- RE: Setting web service timeout in vb.net
- From: Steven Cheng [MSFT]
- RE: Setting web service timeout in vb.net
- From: Bob Connolly
- RE: Setting web service timeout in vb.net
- From: Steven Cheng [MSFT]
- RE: Setting web service timeout in vb.net
- From: Bob Connolly
- RE: Setting web service timeout in vb.net
- From: Steven Cheng [MSFT]
- RE: Setting web service timeout in vb.net
- Prev by Date: Re: Need to wait for TableAdapter.Update to finish
- Next by Date: Re: Passing Form by Reference - How To Upgrade?
- Previous by thread: RE: Setting web service timeout in vb.net
- Next by thread: RE: Setting web service timeout in vb.net
- Index(es):
Relevant Pages
|