Target.jws Sample

This topic inludes the source code for the Target.jws Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/security/wsse/callback/target/

Sample Source Code


01 package security.wsse.callback.target; 
02 
03 /**
04  * @jws:ws-security-service file="TargetPolicy.wsse"
05  * @jws:ws-security-callback file="TargetPolicy.wsse"
06  * @common:target-namespace namespace="http://workshop.bea.com/Target"
07  */
08 public class Target implements com.bea.jws.WebService
09 
10     public Callback callback;
11 
12 
13     /**
14      * @common:operation
15      * @common:message-buffer enable="true"
16      * @jws:conversation phase="start"
17      */
18     public void hello()
19     {
20         callback.callback("Hello, Client!");
21     }
22 
23     public interface Callback extends com.bea.control.ServiceControl
24     {
25         /**
26          * @common:message-buffer enable="true"
27          * @jws:conversation phase="finish"
28          */
29         void callback(String message);
30     }
31