WS Security tutorial
Asymmetric Encryption Secure SOAP Client using RSA Encryption

## Example

This section demonstrates how to make encrypted SOAP message using asymmetric algorithm (RSA).

- These examples are using a X.509 certificate to define the RSA key for encruption.
- To encrypt the message client uses public key of server's certificate, so only server know private key and can decrypt the message.
- In practice message itself is encrypted with 3DES algorthm using a random session key.
- The session key itself is encrypted with public part of RSA key.
- So the server first decode the session key, and then decrypt the message.

The Virtuoso VSP based clients demonstrate

- accessing Virtuoso Web Service with Virtuoso client using asymmetric algorithm
- accessing .NET Web service with Virtuoso client using asymmetric algorithm

To run .NET client against Virtuoso service you need:

- Microsoft WSE 2.0 installed
- Edit the Makefile and specify in CSLIBFLAGS where Microsoft.Web.Services.DLL reside.
- compile the example issuing nmake command in the tutorial/services/ws_s_3 directory.
- if you going to compile the client on an other box, make sure that .config file is in the same directory where is .exe file.