我正在尝试使用此调用加密我的 XMl:
XMlCipher.martial(Document context,ReferenceList referenceList)
为此,项目引用 xmlsec-1.5.3.jar
我能够在 weblogic server 上成功构建和部署代码,但是执行后我在日志中收到以下错误。
Caused by: java.lang.NoSuchMethodError:
org.apache.xml.security.encryption.XMLCipher.martial(Lorg/w3c/dom/Document;Lorg/apache/xml/security/encryption/ReferenceList;)Lorg/w3c/dom/Element;
at com.ally.util.encryption.EncryptionUtil.generateEncryptedXML(EncryptionUtil.java:381)
at com.ally.util.encryption.EncryptionUtil.getEnryptedXMLDocument(EncryptionUtil.java:443)
at com.ally.partner.fis.acctinq.FISSoapHandler.getFISEncryptedHeader(FISSoapHandler.java:154)