views:

467

answers:

1

Hi all,

I'm trying to get my head around wcf and have a test scenario where i want to recieve an unsigned SOAP message process it and return a signed SOAP message, where the body is signed.

Therefore, how do i add a public/private key pair to the WCF service for it to utilise in signing?

Secondly, how would i add a digital signature to the outgoing message signing the body only.

I'm using a custom SOAP1.1 with WS-addressing binding.

I'm using c#.

Thanks in advance

Regards,

Jon

+1  A: 

What service are you signing your message for? If it's for Amazon, then this article provides a nice tutorial: Signing Amazon Product Advertising API requests — the missing C# WCF.

Adam Kahtava