Sample configuration for making a TEWS call with WSS enabled.
Identity Manager 14.x
Ensure TewsSecurityFilter is enabled, this code will do the job of fetching the username and password from the SOAP header.
Once the above is done, your request should include wsse:Security as part of the soap header like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-31571602">
<wsse:Username>superadmin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">firewall</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<wsdl:ResubmitTasksTaskContext xmlns:wsdl="http://tews6/wsdl" xmlns:mustUnderstand="http://schemas.xmlsoap.org/soap/envelope/"mustUnderstand:mustUnderstand="0">
<wsdl:admin_id>adminuser</wsdl:admin_id>
</wsdl:ResubmitTasksTaskContext>
</soapenv:Header>