To consume a Dynamics 365 for Operations service using SOAP, follow these steps:
- 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.
- We will now need to install some NuGet packages. Within Visual Studio, navigate to Tools | Nuget Package Manager | Package Manager Console.
- In the Package Manager console, type the following command:
Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory
- Right-click on the References node in the project and choose Add Service Reference.
- Enter https://usnconeboxax1aos.cloud.onebox.dynamics.com/soap/services/ConWHSServices ...