Product:TIBCO Spotfire Server
Versions:All Versions
Summary:
This article explains how to resolve the "Access to was denied" error when accessing Spotfire Public Web Services API's
Details:
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
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:
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:
Versions:All Versions
Summary:
This article explains how to resolve the "Access to was denied" error when accessing Spotfire Public Web Services API's
Details:
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 403If 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
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:
- config export-config --force
- config config-web-service-api --enabled=true
- config import-config -c "Enabled the public Web Service API"
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:
- config export-config --force
- config config-web-service-api --soap-enabled=true
- config import-config -c "Enabled the public Web Service API"