0

I have a client that helped us to configure a SOAP API using Ready-API tool. They used Keystore file as WS-Security config,

enter image description here

Now, how can I use HttpClient class or any other .NET class to send the same request using C#?

5
  • Do you have a WSDL with a description of the service? Commented Jul 28, 2020 at 14:19
  • You can create the XM portion with any XML Net Library. Then add headers to a HTTP Request and put the xml as the contents of the http. Commented Jul 28, 2020 at 14:49
  • Some samples here Commented Jul 28, 2020 at 18:46
  • How can I attach keystore file? Commented Jul 29, 2020 at 5:49
  • I just needed to convert keystore to p12 and set client certificate var _clientHandler = new HttpClientHandler(); _clientHandler.ClientCertificates.Add(cert); _clientHandler.ClientCertificateOptions = ClientCertificateOption.Manual; Commented Jul 29, 2020 at 11:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.