Custom services are always deployed on two endpoints:
- JSON (JavaScript Object Notation) endpoint
- SOAP (Simple Object Access Protocol) endpoint
In Dynamics 365 for Finance and Operations, all service groups under AOT
| Service
groups are automatically deployed. Therefore, all services that need to be deployed must be a part of a service group.
JSON endpoint is deployed at https://<host_uri>/api/Services/<service_group_name>/<service_group_service_name>/<operation_name>
.
In this recipe, we will consume Dynamics 365 for Finance and Operations custom web service in JSON.
You need to install Newtonsoft.Json
NuGet to build this recipe. So, navigate to NuGet Package Manager Console
in Visual Studio and install Newtonsoft.Json
. As we have done in the previous recipe, get the help of NuGet Package Manager Console to install the Microsoft.IdentityModel.Clients.ActiveDirectory
library.