Hi!
I try to run sample comming with WSE 3.0 installation package
(WSSecurityKerberosPolicyService.sln),
but I receive exception:
Calling
http://localhost/WSSecurityKerberosPolicy/WSSecurityKerberosService.asmx
****** Exception Raised ******
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:wsa="
http://schemas.x mlsoap.org/ws/2004/08/addressing"
xmlns:soap="
http://schemas.xmlsoap.org/soap/en velope/"><soap:Header><wsa:Action>
http://schemas.xmlsoap.org/ws/2004/08/addressi ng/fault</wsa:Action><wsa:MessageID>urn:uuid:44e53ef8-cb66-4860-b2fb-21200189324
e</wsa:MessageID><wsa:RelatesTo>urn:uuid:b63711f0-8d3d-4fce-bb5e-70ea70599612</w
sa:RelatesTo><wsa:To>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anony mous</wsa:To></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultc
ode><faultstring>Server unavailable, please try
later</faultstring><faultactor>h
ttp://localhost/WSSecurityKerberosPolicy/WSSecurityKerberosService.asmx</faultac
tor></soap:Fault></soap:Body></soap:Envelope>
Microsoft.Web.Services3.ResponseProcessingException: WSE910: An error
happened d
uring the processing of a response message, and you can find the error in
the in
ner exception. You can also find the response message in the Response
property.
---> System.InvalidOperationException: Security requirements are not
satisfied
because the security header is not present in the incoming message.
at
Microsoft.Web.Services3.Security.SecureConversationClientReceiveSecurityFi
lter.ValidateMessageSecurity(SoapEnvelope envelope, Security security)
at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(Soap
Envelope envelope)
[...]
In my EventLog there is a error message:
An error occured processing an outgoing fault response.
Details of the error causing the processing failure:
System.InvalidOperationException: Send security filter on the server could
not retrieve the operation protection requirements from the operation
state.
at
Microsoft.Web.Services3.Security.SecureConversationServiceSendSecurityFilter.SecureMessage(SoapEnvelope
envelope, Security security)
at
Microsoft.Web.Services3.Security.SendSecurityFilter.ProcessMessage(SoapEnvelope
envelope)
at Microsoft.Web.Services3.Pipeline.ProcessOutputMessage(SoapEnvelope
envelope)
at
Microsoft.Web.Services3.WseProtocol.GetFilteredResponseEnvelope(SoapEnvelope
outputEnvelope)
The SOAP fault that was being processed follows:
<soap:Envelope
xmlns:wsa="
http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header>
<wsa:Action>
http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
<wsa:MessageID>urn:uuid:0997f1ff-9705-43d1-8c55-3fdf3b23b257</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:b63711f0-8d3d-4fce-bb5e-70ea70599612</wsa:RelatesTo>
<wsa:To>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode
xmlns:prefix0="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">prefix0:InvalidSecurityToken</faultcode>
<faultstring>Microsoft.Web.Services3.Security.SecurityFault:
An invalid security token was provided --->
System.Security.SecurityException: The Kerberos credential handle could
not be acquired. The AcquireCredentialsHandle call returned the following
error code: Nie ma obecnie serwerów logowania dostêpnych do obs³ugi
¿±dania logowania. (in English error message is: There is no avilable
login server for login request)
I replace targetPrincipal attribute with my data:
targetPrincipal="host/N1054" (my computer name).
WebService and client app works on my computer (named N1054 - Windows XP
Prof, SP 2)
- computer is in domain.
Best regards
Pawel