Professional Documents
Culture Documents
This article gives a overview of the Web Services provided by the EMP platform.
The EMP platform is fundamentally a service-oriented platform. The applicative
modules expose either a Web API (RESTful services) or more traditional SOAP web
services that you can call from any language.
This article gives an overview of the Web Services supported by the platform and it
gives pointers to articles that illustrate the various Web Services scenarios through
small examples.
Authentication
Web Service calls can be authenticated with a username and password (basic
authentication), with a certificate or with OAuth2 tokens. The following articles describe
how to use these authentication methods:
Basic authentication: This method is the simplest one but it is difficult to secure
because the web service client must provide (and thus store) a password. This method
is only available on-premise; it is not supported by Enterprise Management Online.
Certificate authentication: This method will usually be the method of choice for
on-premise deployments. It allows you to secure web service calls without having to
integrate with an external OAuth2 provider. This method is not supported by Enterprise
Management Online.
OAuth 2 authentication: This is the only method available in Enterprise
Management Online, and the method of choice if you are already using an OAuth2
provider to authenticate users.
SData 2.0
The EMP Web API is based on SData 2.0, a RESTful protocol specification published
by Sage.
There are a few differences between this Web API and the SData protocol. They are
summarized in this article.
Testing interactively
Web API calls are usually issued by programs but, as they are just HTTP requests they
can also be tested interactively, directly in the browser, or better, with a tool
like Postman.
If you test the URL with your browser you will be redirected to the login page first. After
login you will get the result of your query.
If you test with a tool like Postman you will need to add an HTTP `Autorization` header
to your request. An easy way to start is to configure [basic authentication](../integration-
guide/ws-basic-authentication.md). If you have installed node.js on your machine you
can obtain this header with:
CODECODE CODEsh
where `user` and `password` are the user and password that you have configured for
web services. This will print something like:
Basic dXNlcjpwYXNzd29yZA==
Links
EMP Integration Guide
RESTful Web API
SOAP Web Services
SData 2.0 Specification