- Start the Synapse configuration numbered 100: i.e.
wso2esb-samples.sh -sn 100
- Start the Axis2 server and deploy the
SecureStockQuoteServiceif not already done.
- You may also need to download and install the unlimited strength policy files for your JDK before using Apache Rampart (e.g. see , see http://www.oracle.com/technetwork/java/javase/downloads/jce-67-download-429243432124.html).
Use the stock quote client to send a request without WS-Security. ESB is configured to enable WS-Security as per the policy specified by 'policy_3.xml' for the outgoing messages to the SecureStockQuoteService endpoint hosted on the Axis2 instance. The debug log messages on ESB shows the encrypted message flowing to the service and the encrypted response being received by ESB. The wsse:Security header is then removed from the decrypted message and the response is delivered back to the client, as expected. You may execute the client as follows: