Article ID: 922779 - Last Review: November 22, 2007 - Revision: 1.6 You may receive a WSE590 exception in Web Services Enhancements 3.0 for Microsoft .NET when you try to implement OASIS Web Services Security 1.0SYMPTOMS When you try to implement OASIS Web Services Security
(WS-Security) 1.0, you may receive a WSE590 exception in Microsoft Web Services
Enhancements 3.0 for Microsoft .NET (WSE). CAUSEThis problem occurs when the SecurityTokenReference class does not contain a KeyIdentifier element. Instead, the security token reference relies on the <ds:X509SerialNumber> digital signature element to identify the certificate. However,
WSE 3.0 does not correctly parse the value of the <ds:X509SerialNumber> digital signature element. WORKAROUNDTo work around this problem, create and add a KeyIdentifier element to match the key that is used to sign the original
message. You have to override the ProcessMessage method to modify the EncryptedKey element that identifies the subnode of the KeyInfo element. Then you have to remove the subnode of the KeyInfo element. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following XML code sample adds a KeyIdentifier element to the node of the EncryptedKey element. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. MORE INFORMATIONFor more information about the set of core classes that are
used in WSE-enabled applications, visit the following Microsoft Developer
Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/microsoft.web.services3.aspx
(http://msdn2.microsoft.com/en-us/library/microsoft.web.services3.aspx)
For more information about the set of core classes that help
secure SOAP messages, visit the following MSDN Web site:http://msdn2.microsoft.com/en-us/library/microsoft.web.services3.security.aspx
(http://msdn2.microsoft.com/en-us/library/microsoft.web.services3.security.aspx)
For more information about XML Digital Signature, visit the
following MSDN Web site:http://msdn2.microsoft.com/en-us/library/ms996502.aspx
(http://msdn2.microsoft.com/en-us/library/ms996502.aspx)
The
third-party products that this article discusses are manufactured by companies
that are independent of Microsoft. Microsoft makes no warranty, implied or
otherwise, regarding the performance or reliability of these products.
| Article Translations
|
Back to the top
