내가 WCF하고있는 wsHttpBinding을 사용하여 새로운 오전,하지만 난 (내가 통과해야) 서비스 클라이언트를 사용자 이름을 제거하고 암호를 형성 할은, 내 클라이언트 코드는WsHttpBinding과 클라이언트 인증
RServiceClient serviceClient = new RServiceClient();
serviceClient.ClientCredentials.Windows.ClientCredential.UserName = "UserName";
serviceClient.ClientCredentials.Windows.ClientCredential.Password = "Password";
입니다
이 사용자 이름과 암호를 전달하고 싶지 않습니다.
내 클라이언트의 app.config은 다음과 같습니다
<binding name="WSHttpBinding_IRService"
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="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
의식 이제 서비스는 웹에서 호스팅됩니다. service.config 또는 클라이언트 측 응용 프로그램 .config에 변경 사항이 있습니다. 내 약한 지식에 googleing 후 클라이언트 측 변경해야하지만 그럴 수 없습니다. :-(
참고 :.. 내 계약이 너무 세션을 필요로 사전에 고맙습니다 당신은 서버 측에서의 web.config를 변경해야
내가 요구하고있는 무슨 이잖아, service.config의 변화는 무엇인가? 이 내 설정이다. <는 system.serviceModel> <동작 이름 = "RServiceBehavior"> serviceBehaviors> <서비스 behaviorConfiguration = "RServiceBehavior 'NAME ="EHRService "><엔드 포인트 주소 =" "바인딩 ="있는 wsHttpBinding "계약 ="ServiceContracts.IRService "> –
user765573