title: WS-Security in Delphi XE8
body: <p>I'm trying to acces a webservice with WS-Security in Delphi, but i'm not really sure how to do it</p>
  
  <p>This is the XML that i'm sending right now</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;SOAP-ENV:Header&gt;
       &lt;NS1:Security xmlns:NS1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1"&gt;
         &lt;Timestamp xsi:nil="true"/&gt;
         &lt;BinarySecurityToken xsi:nil="true"/&gt;
         &lt;NS1:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id=""&gt;
           &lt;Username xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;MyUsername&lt;/Username&gt;
           &lt;NS1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;MyPass&lt;/NS1:Password&gt;
           &lt;Nonce xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;&lt;/Nonce&gt;
           &lt;Created xsi:nil="true"/&gt;
         &lt;/NS1:UsernameToken&gt;
         &lt;Signature xsi:nil="true"/&gt;
       &lt;/NS1:Security&gt;
    &lt;/SOAP-ENV:Header&gt;
    &lt;SOAP-ENV:Body&gt; 
      &lt;GetUsername xsi:nil="true"/&gt;
    &lt;/SOAP-ENV:Body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I get a timeout that i'm pretty sure is due the credentials. 
  I'm calling the functions of the webservice using the code generated by the WSDL importer of delphi and a HTTPRIO</p>
  
  <p>Any ideas?</p>