aspose file tools*
The moose likes Security and the fly likes Problem with security token Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Problem with security token " Watch "Problem with security token " New topic
Author

Problem with security token

Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 90
I have a web service and when my client accesses my service, he gets an error message that says that the referenced security token could not be found. What is the cause of this error and how can it be corrected? My client and I have our security certificates installed in our systems.

Below is the error message that my client is receiving:

Event Type: Error
Event Source: Microsoft WSE 3.0
Event Category: None
Event ID: 0
Date: 12/31/2008
Time: 2:26:58 PM
User: N/A
Computer: MTLNET02
Description:
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:
<env:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
<wsa:MessageID>urn:uuid:20dc3d0a-8e63-4ee1-a028-479ee65cadb1</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:E11E9F935F86D1FD6D12307516288699161</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
</env:Header>
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value xmlns refix78="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">prefix78:SecurityTokenUnavailable</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">System.Web.Services.Protocols.SoapException: Referenced security token could not be retrieved ---> WSE590: Failed to resolve the following Key Info <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">H8JjLAe12rN0lVQ4rKjnHX+g3PI=</wsse:KeyIdentifier></wsse:SecurityTokenReference></KeyInfo>.</env:Text>
</env:Reason>
<env:Node>https://apps02.arifleet.com/copartassignmentproducer/assignmentproducer.asmx</env:Node>
</env:Fault>
</env:Body>
</env:Envelope>



For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.







Event Type: Error
Event Source: Microsoft WSE 3.0
Event Category: None
Event ID: 0
Date: 12/31/2008
Time: 3:27:46 PM
User: N/A
Computer: MTLNET02
Description:
System.ApplicationException: WSE841: An error occured processing an outgoing fault response. ---> System.Web.Services.Protocols.SoapException: Referenced security token could not be retrieved ---> WSE590: Failed to resolve the following Key Info <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">H8JjLAe12rN0lVQ4rKjnHX+g3PI=</wsse:KeyIdentifier></wsse:SecurityTokenReference></KeyInfo>.
--- End of inner exception stack trace ---



For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
[ January 02, 2009: Message edited by: Fred Victa ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with security token