我想摆脱静态的“ims:”并将 SOAP 请求中的前缀与 namespace 一起使用xmlns:ims="http://www.imsglobal.org/services/lis/bdems1p0/wsdl11/sync/imsbdems_v1p0
。如何在 Spring 拦截器中执行此操作?
protected String findProperty(SOAPHeader soapHeader, String propertyName) {
NodeList list = soapHeader.getElementsByTagName("ims:" + propertyName);
我想要的财产是
<ims:imsx_syncRequestHeaderInfo>
<ims:imsx_version>V1.0</ims:imsx_version>
<ims:imsx_messageIdentifier>?</ims:imsx_messageIdentifier>
</ims:imsx_syncRequestHeaderInfo>