Hi,
We actually store the username and the password for calling external
webservice and then use it like this way on our cxf config file
<jaxws:client id="ZWsCustomerCreate"
serviceClass="xxx.customer.create.ZWsCustomerCreate"
address="${webservice.sap.Z_WS_CUSTOMER_CREATE.url}">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"
/>
</jaxws:outInterceptors>
</jaxws:client>
<http:conduit name="*Z_WS_ACC_DOCUMENT_POSTPort.http-conduit">
<http:authorization>
<sec:UserName>${webservice.sap.Z_WS_ACC_DOCUMENT_POST.username}</sec:UserName>
<sec:Password>${webservice.sap.Z_WS_ACC_DOCUMENT_POST.password}</sec:Password>
</http:authorization>
.........
Is there any way to remove the variable from the config file or encrypt it
in a Java class ?
${webservice.sap.Z_WS_ACC_DOCUMENT_POST.username}
Thanks in advance.