I keep getting this error when connecting to the web service
Authentication failed for outgoing message. The expected identity is the identifier ( http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn ) for the endpoint http: // qbes: 3790 / Bullfrog / QBService / QBService .
The only time I can get it to work is to set an identity on my email address. I don’t know why this works, I was just trying to do something, and it worked. But when I publish the client application on my web server, the email id no longer works and I get the same error. What am I doing wrong here? Here is my configuration section. Thank!
<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>
source
share