| Summary | How to configure WS-Security UsernameToken values within configuration file for Artix 5.5 JAX-WS | 
|---|---|
| Article Number | 18718 | 
| Environment | Artix 5.5 Artix JAX-WS Runtime All Supported Operating Systems | 
| Question/Problem Description | How to configure WS-Security UsernameToken values within configuration file for Artix 5.5 JAX-WS How to specify username/password values for WS-Security UsernameToken in configuration How to configure Artix 5.5 JAX-WS WS-Security credentials | 
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution | Artix 5.5 JAX-WS uses the org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor for inserting the WS-Security Token into the SOAP message. Below is an example of how to specify the user name and password directly in the configuration file that are used to populate the header values. The xml snippet can be used with the sample located in <ARTIX_JAVA_HOME>\\samples\\basic\\wsdl_first ...  <jaxws:client name="{http://apache.org/hello_world_soap_http}SoapPort" ... The above configuration will result in the following message that contains the WS-Security UsernameToken.     [java] INFO: Outbound Messag.e Please be aware, that by specifying the password in clear text within a configuration file could introduces a possible security weakness. Further details on how to specify the credentials programmatically can be found in the Artix Guide "Artix Security Guide, Java Runtime" under the section "Programming Authentication".. | 
| Workaround | |
| Notes | |
| Attachment | 
| Created date: | 06 September 2011 | 
|---|---|
| Last Modified: | 13 February 2013 | 
| Last Published: | 23 June 2012 | 
| First Published date: | 10 September 2011 | 
#KnowledgeDocs
#Orbix

