Get User Id

getUserId(p_companyID, p_wsAltUserId)

 

You can use this endpoint to retrieve the user id from our software based on the wsAltUserId value.

Parameters

Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_wsAltUserId string Yes The wsAltUserId code for which we need to search and retrieve the user id from our database

Return values

An integer that can be anything between 1 - N, which represents the last user id which was added to the database.

'NO_WS_ALT_USER_ID_INFOFIELD' - the company does not have an infofield set as wsAltUserId.

'NO_USER_ID_FOUND' - No user id found based on the wsAltUserId provided.

Sample

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uen="uen:esws">
<soapenv:Header/>
<soapenv:Body>
<uen:Esws.getUserId soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aKWqVu0</p_companyID>
<p_wsAltUserId xsi:type="xsd:string">123456789</p_companyID>
</uen:Esws.getUserId>
</soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:Esws.getUserIdResponse xmlns:ns1="uen:esws">
<return xsi:type="xsd:string">2179</return>
</ns1:Esws.getUserIdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>