EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Signing XML Delphi XE2

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#22744
Posted: 12/06/2012 07:31:19
by funatical  (Basic support level)
Joined: 11/28/2012
Posts: 9

Thanks.
#22765
Posted: 12/10/2012 09:57:57
by funatical  (Basic support level)
Joined: 11/28/2012
Posts: 9

How to add a security node like this?

<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-

x509-token-profile-1.0#X509v3" wsu:Id="SecurityToken-60498088-e311-4f16-8a91-6c95447cd3e7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-

1.0.xsd">MIIE4DC...................==
</wsse:BinarySecurityToken>
</wsse:Security>

Thanks.
#22771
Posted: 12/10/2012 11:20:05
by Dmytro Bogatskyy (EldoS Corp.)

Quote
How to add a security node like this?

With SOAP components, you can do following:
Code
  k := FSOAPMessage.AddSecurityHeader;
  BinToken := TElXMLWSSEBinarySecurityToken.Create;
  FSOAPMessage.SecurityHeaders[k].AddToken(BinToken);
  BinToken.SetCertificate(Certificate);

or you can use XML DOM and create those elements by yourself (using CreateElementNS method).

Reply

Statistics

Topic viewed 5302 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!