span8
span4
span8
span4
This article has been depreciated, for current information on working with FME and REST, see the FME Server REST API Training course.
A common requirement when leveraging web services inside other apps is the need to deal with two security concepts:
These concepts apply to FME Server web services as well, regardless of whether they are RPC or REST-based.
FME Server enforces usage policies for workspaces at the level of the repository. By granting a policy to use a repository you are authorizing access to use all of the workspaces in that repository. So, before you can authorize use of workspaces, you must first create a repository.
To use a FME Server web service, the requesting client must be authorized. So far you have accessed the web services using the same web browser that you logged into the Web User Interface. So, the authorization for the web service was already established. However, the web service we’re building won’t require an explicit login by the user (it could if we wanted to). So you will need a token to authorize the web service calls. You should use a dedicated user and token for this project.
Create a new user:
Record the token for later use. If you forget the token, come here later, login and click View instead of Generate.
To allow web apps from separate hosts (i.e. origins) to use web services provided by FME Server you need to configure FME Server to allow that host access using the Cross-Origin Resource Sharing (CORS) filter.
Creating REST Web Services: 9. Conclusion (2015)
Tutorial: Creating REST Web Services (2015)
Creating REST Web Services: 1. An Overview of REST and RPC (2015)
Creating REST Web Services: 2. Defining the Web Service (2015)
Creating REST Web Services: 4. First an RPC Web Service (2015)
Creating REST Web Services: 5. Defining the REST API (2015)
Creating REST Web Services: 6. Supporting HTTP POST (2015)
Creating REST Web Services: 7. Supporting HTTP PUT (2015)
Creating REST Web Services: 8. Supporting HTTP DELETE (2015)
© 2019 Safe Software Inc | Legal