Access to <spotfire-server-ip> was denied when trying to access Spotfire Public Web Services WSDL

Access to <spotfire-server-ip> was denied when trying to access Spotfire Public Web Services WSDL

book

Article ID: KB0078291

calendar_today

Updated On:

Products Versions
Spotfire Server All Versions

Description

When accessing the TIBCO Spotfire Server Public Web Services API's WSDL you may receive the following error ,
For example http[s]://<tss_host>[:<port>]/spotfire/ws/pub/<ServiceName>?wsdl or http[s]://<host>[:<port>]/spotfire/api/soap/<ServiceName>/wsdl
Access to <spotfire-server ip> was denied
You don't have authorization to view this page.
HTTP ERROR 403
If you open the Developer Tools [F12] in the browser, you can see the following error in the console tab:
Failed to load resource: the server responded with a status of 403 ()
This error occurs if the Public Web Services API is not enabled on the Spotfire server
 

Issue/Introduction

This article explains how to resolve the "Access to was denied" error when accessing Spotfire Public Web Services API's

Resolution

To resolve the issue the Web Services API must be enabled.

To do this, export the server configuration from the database, run the config-web-service-api command to enable web services, and import the updated configuration to the database. See the "Enabling the Web Services API" documentation reference for more details. On the command line, go to the <server installation folder>\tomcat\bin directory, and run the following commands:
For Spotfire 7.12 and earlier:
  1. config export-config --force
  2. config config-web-service-api --enabled=true
  3. config import-config -c "Enabled the public Web Service API"
After importing the above configuration restart the Spotfire Server.
Note: All user accounts that are going to use the API must also be members of the API User group.

For Spotfire 7.13 and after:
  1. config export-config --force
  2. config config-web-service-api --soap-enabled=true

     

  3. config import-config -c "Enabled the public Web Service API"
After importing the above configuration restart the Spotfire Server.

Additional Information

Doc: Spotfire Server Public Web Services API's Doc: Enabling the Web Services API Web Services API Reference