我在集成 Spring 基础 Web 服务框架时遇到问题。框架的独立实例工作得很好。但是在与 web 逻辑集成后,它给出了以下异常。我的假设是在解析响应的安全标头时出现冲突的 jar。
Could not validate request: Referenced security token could not be retrieved
(Reference "Issuer/Serial data element missing"); nested exception is:
org.apache.xml.security.exceptions.XMLSecurityException:
Cannot create a http://www.w3.org/2000/09/xmldsig#:X509IssuerSerial from a http://www.w3.org/2000/09/xmldsig#:X509IssuerSerial element; nested exception is org.apache.ws.security.WSSecurityException: Referenced security token could not be retrieved (Reference "Issuer/Serial data element missing");
最终导致
javax.xml.bind.UnmarshalException: unexpected element (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Fault").