Share via


4.1 UsernameToken Element in a SOAP Request Message

The following is an example of a <Security> element with a username token and a timestamp.

 <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
   <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
     <Created>2008-08-15T01:33:04.916Z</Created>
     <Expires>2008-08-15T01:38:04.916Z</Expires>
   </Timestamp>
   <o:UsernameToken>
     <o:Username>...</o:Username>
     <o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">...</o:Password>
   </o:UsernameToken>
 </o:Security>