Workday Soap API - User Name/Password

Warren Kuhl picture Warren Kuhl · Jul 28, 2015 · Viewed 13.6k times · Source

I am trying to call the Workday Integration API. I am able to connect but am getting a invalid username or password message. My question is - where do I put this information? I don't see anything in the wsdl where I can put the user name or password.

Launch_Integration

Thanks for any help! Warren

Answer

Yavor picture Yavor · Jan 20, 2016

For some reason, finding the correct auth method is difficult in the Workday documention, in fact I'm not sure even if it's mentioned anywhere. If you're using Workday Studio, you may use the Web Service Tester. That will generally allow you customize and form your request and will show you various authentication options.

However if you don't you may use the below envelope for your requests. In the BODY you need to add the particular WS request you want to use (such as Launch Integration).

<env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
        <wsse:Security env:mustUnderstand="1">
            <wsse:UsernameToken>
                <wsse:Username>yourusername@yourtenant</wsse:Username>
                <wsse:Password
                    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">**YOURPASSWORD***</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </env:Header>
    <env:Body>

    </env:Body>
</env:Envelope>