WCF 서비스 라이브러리에서 제 3 자 웹 서비스를 호출해야합니다. 내가 테스트 응용 프로그램에서 타사 웹 서비스를 호출 할 때, 문제가없는,하지만 난 내 WCF 서비스에서 호출 할 때 오류가 : 나는 Add Service Reference
와 타사 웹 서비스를 추가 한wcf 서비스에서 타사 웹 서비스 호출
An error occurred while receiving the HTTP response to xxx.svc/ws. This could be...
. 내 WCF 서비스의
<wsHttpBinding>
<binding name="WSHttpBinding_xxxService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
바인딩이 다른 : 제 3자가
내 WCF 서비스에 대한바인딩이 자동으로 테스트 app.config
파일에 생성되는
<basicHttpBinding>
<binding name="basicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
하지만 바인딩이 웹 서비스 바인딩이 자동으로 생성됩니다 서비스는 WCF appl config 내에서만 생성됩니다.
내가 뭘 잘못하고 있니?
타사 웹 서비스에 전화하기 위해 ** 코드 **를 표시 할 수 있습니까? 우리가 바인딩을 볼 뿐이라는 것을 제외하고는 아무 것도 보이지 않는 것을 보여주는 구성. 클라이언트 측 끝점 구성 (URL, 계약서 등)을 표시하지 않습니다. –
WCF 서비스 및 테스트 프로그램에서 동일한 방법으로 호출하려고했습니다. xxx_Ws.xxxClient client = new xxxClient(); client.Function(); – user1435135
무응답 서비스를 추적하는 활동은 응답이 없었던 이유에 대한 통찰력을 줄 수 있습니다. 또한 해당 할당량에 도달하지 않았는지 확인하십시오. – insipid