In section 3 of this tutorial, you tested the service provider and consumer and viewed
the SOAP messages as they traveled between the client and server. In section 3, you
had not yet enabled message-level security through the attachment of policy sets, and
thus the SOAP messages were sent in clear text (i.e. not encrypted) as shown in Figure 17. As one of the goals with message- level security is to ensure confidentiality (i.e. only the intended recipient can see the data inside the SOAP message), you now need to rerun the test and verify that the SOAP messages contain encrypted data that isn’t visible to anyone except the intended recipient (not even the TCP/IP Monitor that is acting as an intermediary).
Ensure the TCP/IP Monitor is started as shown in Figure 15, then
right-click the ClientTest.java file of the HelloWorldConsumer project and choose Run As > Run Configurations. This should present a Run Configurations dialog box as shown in Figure 46.
Since the consumer needs to use a Java Authentication and Authorization Service (JAAS) to pass in the Username credentials, you need to specify the following VM argument:
Notice that the Console shows the output from the consumer after unencrypting
the message. If you view the WebSphere Application Server console log, you see a
similar message, which demonstrates that the service provider received the
message.