This topic inludes the source code for the Readme.html Sample.
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/security/wsse/usertoken/
<html> <head> </head> <body> <h1>userToken Sample</h1> <p>The userToken sample shows a simple case of synchronous web service communication, where both web service require username and password. <blockquote><b>Note</b> that WebServiceB.jws is also used to demonstrate the use of Java proxy client classes. For sample code demonstrating the use of Java proxy client classes, see SamplesApp/ProxyClient/WSSE/.</blockquote> <p>Web service A sends a SOAP message to invoke web service B's hello() method. Web service B responds by sending a SOAP message containing the hello() method's return value. <p>Both web services require that incoming SOAP messages be accompanied by a valued user name and password and both web services wrap outgoing SOAP messages with a user name and password before they are sent over the wire. <p> The diagram below shows how the invoking SOAP message and the return SOAP message are processed by WSSE. <p><img src="/WebServices/security/wsse/usertoken/userTokenSample.gif"></body> </html>