A community member has associated this post with a similar question:
Apply WSS to SOAP request

Only moderators can edit this content.

How to decrypt the SOAP request

sonal khatri 51 Reputation points

Hi,My requirement is to apply WS Security using RSAwithSHA256 using a certificate.

This is how I am applying WSS to my XML:
Apply WSS.txt

After applying WSS, I send a SOAP request and receive an encrypted response whose body is like: encrpted response.txt

I am decrypting the response like this:
Decrpyt Response.txt

But I am getting an error "The parameter is incorrrect" at
byte[] decryptedKeyBytes = (await GetPrivateKeyFromPem()).Decrypt(encryptedKeyBytes, RSAEncryptionPadding.OaepSHA1);

Can you help me with how to decrypt the response?

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,615 questions
0 comments No comments
{count} votes