我正在尝试使用 XSLT 更改此 XML SOAP 消息中用于测试的属性的值:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<env:Header>
<wsa:To>http://10.141.160.82:8221/EchoWS/HelloWorldPort</wsa:To>
<wsa:Action>http://ws.test.support.oracle.com/HelloWorld/sayHelloRequest</wsa:Action>
<wsa:MessageID>urn:6B291C103CAA11E3BF2AB9016B2C3D3A</wsa:MessageID>
<wsa:RelatesTo>urn:6B291C103CAA11E3BF2AB9016B2C3D3A</wsa:RelatesTo>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<wsa:ReferenceParameters>
<instra:tracking.ecid xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">863df39044fd7fd4:-419f3903:141cd7e2379:-8000-00000000000011e3</instra:tracking.ecid>
<instra:tracking.conversationId xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">urn:6B291C103CAA11E3BF2AB9016B2C3D3A</instra:tracking.conversationId>
<instra:tracking.parentComponentInstanceId xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">reference:3</instra:tracking.parentComponentInstanceId>
<instra:tracking.compositeInstanceCreatedTime xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">2013-10-24T08:47:19.112-04:00</instra:tracking.compositeInstanceCreatedTime>
</wsa:ReferenceParameters>
</wsa:ReplyTo>
<wsa:FaultTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<wsa:ReferenceParameters>
<instra:tracking.ecid xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">863df39044fd7fd4:-419f3903:141cd7e2379:-8000-00000000000011e3</instra:tracking.ecid>
<instra:tracking.conversationId xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">urn:6B291C103CAA11E3BF2AB9016B2C3D3A</instra:tracking.conversationId>
<instra:tracking.parentComponentInstanceId xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">reference:3</instra:tracking.parentComponentInstanceId>
<instra:tracking.compositeInstanceCreatedTime xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0">2013-10-24T08:47:19.112-04:00</instra:tracking.compositeInstanceCreatedTime>
</wsa:ReferenceParameters>
</wsa:FaultTo>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-wDovd4kFRR1RutxItzNNHw22">
<wsse:Username>weblogic</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">manager03</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</env:Header>
<env:Body>
<sayHello xmlns="http://ws.test.support.oracle.com/">
<arg0 xmlns="">Miguel</arg0>
</sayHello>
</env:Body>
</env:Envelope>
从这里我需要改变的唯一部分是:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="1">
至:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="0">
这是更改env:mustUnderstand="1"
为"0"
.
我一直在努力,但一直没能做到。你能帮我用一个我可以用来做这个的 XSLT 吗?