Previous Page | Next Page

The SOAP Procedure

WS-Security: Client Configuration

The client provides the user name and password to be added to the UsernameToken element. You can provide this information in the outflow configuration of the Apache Rampart module as shown in the following example:

<parameter name="OutflowSecurity">
    <action>
        <items>UsernameToken</items>
        <passwordType>PasswordText</passwordType>
     </action>
</parameter>  

Include the configuration parameter in the client's Axis2 configuration XML file, which is typically axis2.xml.

This configuration results in a password digest being sent to the service. To pass a plain-text password, include the following code as an <action> element:

<passwordType>PasswordText</passwordType>

Note that passing plain-text passwords is not recommended.

Previous Page | Next Page | Top of Page