Symantec Identity Manager - Sample WSDL with Webservices WSS (Username Token enabled)
search cancel

Symantec Identity Manager - Sample WSDL with Webservices WSS (Username Token enabled)

book

Article ID: 280020

calendar_today

Updated On:

Products

CA Identity Suite CA Identity Manager

Issue/Introduction

Sample configuration for making a TEWS call with WSS enabled.

Environment

Identity Manager 14.x

Resolution

Ensure TewsSecurityFilter is enabled, this code will do the job of fetching the username and password from the SOAP header.

Reference:
https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/identity-manager/14-5/programming/programming-guide-for-java/task-execution-web-service/authentication-using-wss-username-token.html

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>