You have to set the system properties to load the trusted certificates which
java will trust. and also provide the password for keystore file.
Then create the configuration context object and locate where the rampart and rahasa are located
For example if rampart and rahas modules are in xyz/web-inf/modules give path till web-inf
Create stub and pass the configuration context and get the service client
Engage rampart on the clients machine and give the certificate details through service client options
and make a call through the secured stub.