PolicyB.wsse Sample

This topic inludes the source code for the PolicyB.wsse 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/usertoken/webServiceB/

Sample Source Code


01 <?xml version="1.0" ?> 
02 <wsSecurityPolicy xsi:schemaLocation="WSSecurity-policy.xsd"
03     xmlns="http://www.bea.com/2003/03/wsse/config"
04     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
05     
06     <!--
07     Incoming SOAP messages must be accompanied by a username and password.
08     -->
09   <wsSecurityIn>
10             <token tokenType="username"/>
11     </wsSecurityIn>
12 
13     <!--
14     Accompany outgoing SOAP messages with a username and password before sending them
15     out on the wire.
16     -->
17   <wsSecurityOut>
18                 <userNameToken>
19                     <userName>weblogic</userName>
20                     <password type="TEXT">weblogic</password>
21     </userNameToken>
22   </wsSecurityOut>
23     
24 </wsSecurityPolicy>