span8
span4
本条已计提折旧,for current information on working with FME and REST,see theFME 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.所以,before you can authorize use of workspaces,必须首先创建存储库。
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.所以,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).因此,您需要一个令牌来授权Web服务调用。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: 7.Supporting HTTP PUT (2015)
正在创建REST Web服务:8。Supporting HTTP DELETE (2015)
Creating REST Web Services: 9.Conclusion (2015)
Tutorial: Creating REST Web Services (2015)
正在创建REST Web服务: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.定义其余API(2015年)
© 2019 亚搏在线Safe Software Inc |Legal