# @jws:ws-security-service Annotation

The @jws:ws-security-service annotation determines the WS-Security policy file (WSSE) to be applied to (1) incoming SOAP invocations of the web service's methods and (2) the outgoing SOAP messages containing the value returned by the web service's methods.

## Syntax

@jws:ws-security-service

file="[path_to_policy_file]"

## Attributes

file

Required. Specifes the path to the WS-Security policy file (WSSE file) used by the web service.

## Example

    /**
     * @jws:ws-security-service file="MyCompanySecurityPolicy.wsse"
     */
    public class MyCompany implements com.bea.jws.WebService

Related Topics

@jws:ws-security-callback Annotation

@jc:ws-security-service Annotation

@jc:ws-security-callback Annotation

Applying WS-Security Policy Files