2010-08-19 6 views
3

웹 서비스에 연결할 때이 오류가 계속 나타납니다.WCF 신원 확인이 실패했습니다.

발신 메시지의 신원 확인에 실패했습니다. 예상 ID는 'http://qbes:3790/Bullfrog/QBService/QBService'대상 끝점에 대해 'identity (http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn)'입니다.

내 이메일 주소로 신원을 설정하면 문제가 해결됩니다. 나는 왜 이것이 작동하는지 모르겠다. 나는 단지 노력하고 있었고 효과가 있었다. 하지만 내 웹 서버에 클라이언트 응용 프로그램을 게시 할 때 전자 메일 ID가 더 이상 작동하지 않으며 동일한 오류가 발생합니다. 여기서 내가 뭘 잘못하고 있니? 여기 내 설정 섹션입니다. 감사합니다 !!!

<system.serviceModel> 
<bindings> 
    <wsHttpBinding> 
    <binding name="WSHttpBinding_IQBService" 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> 
    </wsHttpBinding> 
</bindings> 
<client> 
    <endpoint address="http://QBES:3790/Bullfrog/QBService/QBService" 
     binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IQBService" 
     contract="IQBService" name="WSHttpBinding_IQBService"> 
    <identity> 
     <userPrincipalName value="twaldron.Bullfrogspas" /> 
    </identity> 
    </endpoint> 
</client> 

답변

4

클라이언트 엔드 포인트 구성이 서비스의 정체성 예상 지정합니다. 사용자 주체 이름 ID는 서비스를 실행하는 데 사용 된 사용자 계정을 확인합니다. 계정은 실제로 email : userName @ domain과 같은 형식 인 UPN 형식으로 지정해야합니다. 서비스가 사용자 계정에서 실행되므로 전자 메일을 입력 할 때 작동하는 이유가됩니다.

+0

설명해 주셔서 감사합니다. 그래서 내 질문의 다음 부분은 이것입니다. DMZ에서 웹 서버에 클라이언트를 게시 할 때 다음과 같은 다른 오류 메시지가 나타납니다. SOAP 보안 협상에 실패했습니다. SSPI (Security Support Provider Interface) 협상이 에 실패했습니다. 물론이 것은이 ID와 관련이 있습니다. 그래서 dmz에서이 고객이 서비스를 받기 위해 취해야 할 조치는 무엇입니까? – twal

+0

DMZ가 도메인에 있지 않습니까? 아닙니다. –

+0

동일한 도메인에 있지 않습니다. – twal