我如何使用XML加密和xml签名加密和签名SOAP消息

时间:2013-04-11 19:34:10

标签: web-services

您好我想在不使用WSS安全性的情况下加密和签名SOAP消息。 我使用wcf,但wcf使用wss标准加密和签名消息的问题

   <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-
  open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">     
  <s:Header>
  <a:Action s:mustUnderstand="1" 
  u:Id="_2">http://tempuri.org/IService1/GetAllAddressResponse</a:Action>  
  <a:RelatesTo u:Id="_3">urn:uuid:d62cf976-3778-4fc8-871a-3474dc402efc</a:RelatesTo>
  <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-   open.org/wss/2004/01/oasis-
  200401-wss-wssecurity-secext-1.0.xsd">
  <u:Timestamp u:Id="uuid-d6f3afa1-d2e8-4a83-b715-8bee39e5cff3-11">
    <u:Created>2013-04-11T19:29:35.764Z</u:Created>
    <u:Expires>2013-04-11T19:34:35.764Z</u:Expires>
  </u:Timestamp>

0 个答案:

没有答案