RE: WCF : Underlying connection was closed



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Arnaud,
\par
\par From your description, you're using WCF basic httpbinding to consume a JAVA webservice, however, you found the service call will always report error "underlying connection closed..." after the first method call, correct?
\par
\par As for this issue, based on my experience, it is likely the underlying soap request(from WCF to JAVA side) or the soap response(from JAVA side to WCF) doesn't quite meet the receiver's expected format. As you said the problem occur after the first method call, does it occur after you make the webservice call and haven't get the correcct response result. Or does it occur when you make the second webservice call?
\par
\par If the first call finish completely, then, is there any particular difference between the two ones or maybe the second one may take a long runtime time? If the problem can be isolated to method specific, we can then concentrate on that particular webmethod.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par
\par ==================================================
\par
\par Get notification to my posts through email? Please refer to
\par http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
\par ications.
\par
\par
\par
\par Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
\par where an initial response from the community or a Microsoft Support
\par Engineer within 1 business day is acceptable. Please note that each follow
\par up response may take approximately 2 business days as the support
\par professional working with you may need further investigation to reach the
\par most efficient resolution. The offering is not appropriate for situations
\par that require urgent, real-time or phone-based interactions or complex
\par project analysis and dump analysis issues. Issues of this nature are best
\par handled working with a dedicated Microsoft Support Engineer by contacting
\par Microsoft Customer Support Services (CSS) at
\par http://msdn.microsoft.com/subscriptions/support/default.aspx.
\par
\par ==================================================
\par \tab
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par
\par \pard\li720 --------------------
\par From: =?Utf-8?B?QXJuYXVkIFZpc2N1c2k=?= <ho.aviscusi@xxxxxxxxxxxxxxxx>
\par Subject: WCF : Underlying connection was closed
\par Date: Mon, 26 Nov 2007 01:32:01 -0800
\par
\par
\par Hi all,
\par
\par we meet a problem since we use WCF to consume java WebServices.
\par Often the first call works then the second raises the following error :
\par "The underlying connection was closed : "
\par
\par We use a basicHttpBinding over HTTPS to connect to WebService. The
\par configuration is the following
\par <binding name="SoapBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
\par receiveTimeout="00:10:00" sendTimeout="00:02:00"
\par allowCookies="false"
\par bypassProxyOnLocal="false"
\par hostNameComparisonMode="StrongWildcard"
\par maxBufferSize="65536000" maxBufferPoolSize="524288"
\par maxReceivedMessageSize="65536000"
\par messageEncoding="Text" textEncoding="utf-8"
\par transferMode="Buffered" useDefaultWebProxy="true" >
\par \tab\tab\tab
\par \tab\tab <readerQuotas maxDepth="32" maxStringContentLength="8192"
\par maxArrayLength="16384"
\par maxBytesPerRead="4096" maxNameTableCharCount="16384" />
\par <security mode="Transport">
\par <transport clientCredentialType="None"
\par proxyCredentialType="None" realm="" />
\par <message clientCredentialType="UserName"
\par algorithmSuite="Default" />
\par </security>
\par </binding>\tab
\par </basicHttpBinding>
\par
\par We found some solution about the "KeepAlive" property of the generated proxy
\par but it concerns "standard" webservice. We don't know how to reproduce this on
\par WCF client.
\par
\par Is there a solution with Binding configuration or with code ?
\par
\par Thanks
\par
\par \pard
\par
\par }

Relevant Pages

  • RE: =?Utf-8?Q?RE:_WCF_Service_Library:_=E2=80=9Ccannot?= =?Utf-8?Q?_change_thread_mode_after
    ... object in WCF method? ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... If a client application attempts to access a method that activates the COM ...
    (microsoft.public.dotnet.distributed_apps)
  • RE: HttpChannel in WCF
    ... wondering how to do this in WCF, ... If your main concern is dynamically configuring service port. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: ASPX page cant see Session created by WCF with XBAP client
    ... As for the setup ASP.NET seesion in WCF, ... Also, based on my understanding, you're using ASP.NET session to store ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Calling wsHttpBinding service under IIS
    ... consuming a IIS hosted WCF wshttpbinding service from two asp.net WEB ... the WCF client service on the same machine and all hosted in LOCAL IIS). ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • RE: WCF on 2 machines
    ... about security verification that cause the error. ... BTW, for WCF specific problems, you can post them in webservice newsgroup ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.vsnet.general)

Loading