开发者

Does WCF's WS-Security implementation fully support the specification?

开发者 https://www.devze.com 2023-03-15 02:20 出处:网络
Reading this question WCF - Implementing client which requires encryption of one soap:body element, how? gave me a question of my own.

Reading this question WCF - Implementing client which requires encryption of one soap:body element, how? gave me a question of my own.

According to WS-Security specification "The message creator MUST NOT encrypt the S:Envelope, S:Header, or S:Body elements but MAY encrypt child elements of either the S:Header and S:Body elements."

I read that as the message creator can encrypt any number of child elements of S:Body. Perhaps I am misreading the spec and the encryption of the soap body really is all or none... If WCF only supports encryption of the body but not sub-elements of the body, does it still fully support WS-Security, or is this an interoperab开发者_开发技巧ility issue with WCF?


WCF doesn't encrypt Body element itself. It encrypts body content but as mention in related question it doesn't offer fine granularity to selectively encrypt deeply nested elements in the body element.

The question is if MAY encrypt child elements of either the S:Header and S:Body elements means direct child or any nested element. Anyway WCF doesn't violate the standard but it doesn't have to implement every single detail of the standard - as many other WS-* protocol stacks don't as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号