# WebServiceB.jws Sample

This topic inludes the source code for the WebServiceB.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/transport/clientCert/

## Sample Source Code

`01 package security.transport.clientCert; 02 03 import com.bea.control.ServiceControl; 04 import com.bea.control.TimerControl; 05 import com.bea.control.TimerControlFactory; 06 import java.io.File; 07 import weblogic.Home; 08 09 /** 10 * @common:target-namespace namespace="http://openuri.org/bea/samples/workshop/clientcert/webserviceb" 11 */ 12 public class WebServiceB implements com.bea.jws.WebService 13 { 14 public Callback callback; 15 16 public interface Callback extends ServiceControl 17 { 18 19 /** 20 * @jws:conversation phase="finish" 21 * @common:message-buffer enable="true" 22 */ 23 void result(String message); 24 } 25 26 /** 27 * @common:operation 28 * @common:message-buffer enable="true" 29 * @jws:conversation phase="start" 30 */ 31 public void requestCallback(String caller) 32 { 33 callback.result("Here is your callback, " + caller + "."); 34 } 35 } 36`