Signing SOAP Messages

Hi,
I'm trying to sign and verify SOAP messages for Web
Services using C# in Visual Studio .Net.
For this I'm redefining PostMessage() of SoapExtention
and signing the message at after serialize stage on the
client side.
On the server side where the web serivce is running I
intend to verify the signature at the before deserialise
stage. However the call DSA objDSA = DSA.Create() in the
PostMessage() at this stage fails with the following
stack trace

System.Reflection.RuntimeConstructorInfo.InternalInvoke
(BindingFlags invok
eAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean isBinder
Default)
at System.Reflection.RuntimeConstructorInfo.Invoke
(BindingFlags invokeAttr, B
inder binder, Object[] parameters, CultureInfo culture)
at
System.Security.Cryptography.CryptoConfig.CreateFromName
(String name, Obje
ct[] args)
at System.Security.Cryptography.DSA.Create(String
algName)
at System.Security.Cryptography.DSA.Create()

This is perplexing as a similar call at the client end at after serialization does not show any such error. Your help is appreciated in this regard.

Regds
Vallish C.




Comments

  • : Hi,
    : I'm trying to sign and verify SOAP messages for Web
    : Services using C# in Visual Studio .Net.
    : For this I'm redefining PostMessage() of SoapExtention
    : and signing the message at after serialize stage on the
    : client side.

    If you have access to both sides of the communications process, you may consider a different, and much easier approach. If you communicate via SSL, using certificates, it will likely be a much easier task.

    I believe SSL communication capabilities are built into .NET's web communications. I know you can do SSL calls via https, through the MSXML object.

    Enjoy,

    John Goodwin
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion