1

我需要用一个特定的加密提供者签署肥皂消息。所以我写了一个SoapExtension的子类,它在阶段SoapMessageStage.AfterSerialize中添加数字签名,并在阶段SoapMessageStage.BeforeDeserialize中对其进行验证。服务器端工作正常,但客户端存在问题:添加签名后,总是添加一些新的 ws-security 元素并且签名变得不正确。更改优先级无效。有:

香皂:信封

xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

内部肥皂:标题

<wsa:Action>ServerTest/TestMultiply</wsa:Action><wsa:MessageID>uuid:6ea73f70-8164-4e5a-8f8c-17853eadfba2</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsa:To>http://mylocalhost:31791/WebServiceEstate.asmx</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-50be5708-32ab-4014-81d4-7b0b82ff6262"><wsu:Created>2012-08-31T09:49:51Z</wsu:Created><wsu:Expires>2012-08-31T09:54:51Z</wsu:Expires></wsu:Timestamp></wsse:Security>

添加此 ws-securiry 数据后如何应用签名?

4

1 回答 1

1

从 WSE 2.0 迁移到 WSE 3.0 后问题已解决

于 2012-09-03T09:13:31.957 回答