Hi Bill,
From your description, you created a WCF service's client proxy via the
NET 2.0 "Add WebReference" approach, and you're wondering how to configure
the "maxReceivedMessageSize" property for the webservice client proxy
class, correct?
Based on my research, by default the webservice client proxy class only
expose an "Timeout" property which can let you specify the max timeout
period that can let your client proxy waiting for longrun webmethod call.
Also, as for webservice, it normally only care about those http level
settings such as timeout, authentication, proxy or buffer size. And you can
override the following method in webservice proxy class to get the
underlying WebRequest object:
==============
protected override System.Net.WebRequest GetWebRequest(Uri uri) {
WebRequest request = base.GetWebRequest(uri);
HttpWebRequest httpRequest = request as HttpWebRequest;
if (httpRequest != null)
{
httpRequest.ServicePoint.MaxIdleTime = 3000;
httpRequest.KeepAlive = false;
}
return request;
}
=================
All the available network configuration are on the WebRequest object or its
"ServicePoint" property.
here are some other web article which describe this also:
#Connection left open after the web service request
http://vidmar.net/weblog/archive/2005/10/23/2310.aspx
#TCP Connections and Web Service Calls (Reposted from WebServices newsgroup)
http://forums.msdn.microsoft.com/en/netfxnetcom/thread/d093d602-4c6b-4b02-86
03-29c556b98cd1/
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:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------