How to do it...

To consume an F&O service using SOAP, follow these steps:

  1. Create a new project; this time, choose Visual C# from the Templates node and then Console Application from the right. Name the project ConServiceTest and place it in the project folders that we set up for source control. Ensure that the namespace is also ConServiceTest.
  2. Now, we need to install some NuGet packages. Within Visual Studio, navigate to Tools | NuGet Package Manager | Package Manager Console.
  3. In the Package Manager console, type in the following command:
Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory 
  1. Right-click on the References node in the project and choose Add Service Reference.
  2. Enter https://usnconeboxax1aos.cloud.onebox.dynamics.com/soap/services/ConVMSServices ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.