title: Consuming a DataPower service which is not WCF and involving X509 cert in a Console Application
body: <p>I have a service which is not built in .Net and requires a X509 certificate authentication. The services requires a soap string to be sent. I have built the soap manually and added the X509 cert to the httpwebrequest but when i read the response i get the "Service Not Authenticated" response.</p>
  
  <p>However when i use the same soap string from SoapUI Client, right click and add the ougoing wss->" Apply Cert name" , it adds the wsse:Security elements dynamically and then when i run the request it gives me the response</p>
  
  <p>So, the question i have is how do i add the wsse:Security elements using the X509 cert dynamically  in the headers</p>
  
  <p>Any help is appreciated.</p>