How to access five(9)s web services

Modified on Wed, 10 May, 2023 at 1:26 PM

In order to user the five(9)s Webservices it is required to authenticated using a "Personal Access Token"

The endpoint url is: https://<coreservername>/five9sWS/five9sws.asmx?wsdl


HowTo
Send token as "ConsoleAuthHeader" in header of your web request.
(e.g. consoleAuthHeader:D678B99096C0DFDE1C4C2CF6787DD523CBD989445C1E3C43
The following Powershell script demonstrate how to add the request header to a web service call.


# Invoke five9sWS and get List of OS
$serverURL = 'https://localhost/five9sWS/five9sws.asmx?wsdl'
$soapRequest = [xml]
@" 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soap:Body>
        <getOSList xmlns="http://www.five9s.de/" /> 
    </soap:Body> 
</soap:Envelope>
"@
$header= @{"ConsoleAuthHeader"="D678B99096C0DFDE475380FD951A79FCFDCFB122D5BAF3CF76"}

$result = Invoke-WebRequest -Uri $serverURL -Headers $header -Method Post -Body $soapRequest -ContentType "text/xml"

write-output $result.Content 

Last Modified Date

04.05.2023
Verified versions
five(9)s Console version 4.2


Tags
  • Web Service Access
  • Personal Access Token

Disclaimer
Even though every care has been taken by five(9)s GmbH to ensure that the information contained in this publication is correct and complete, it is possible that this is not the case. five(9)s GmbH provides the publication "as is", without any warranty for its soundness, suitability for a different purpose or otherwise. five(9)s GmbH is not liable for any damage which has occurred or may occur as a result of or in any respect related to the use of this publication. five(9)s GmbH may change or terminate this publication at any time without further notice and shall not be responsible for any consequence(s) arising there from. Subject to this disclaimer, five(9)s GmbH is not responsible for any contributions by third parties to this publication.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article