How to do it...

To create the service wrapper for the service, follow these steps:

  1. Create a new C# Class Library project named WeatherService.
  2. Rename the class1.cs file to WeatherService.cs.
  3. Create a new service reference by right-clicking on the References node in Solution Explorer and choosing Add Service Reference.
  1. Enter in the Address field and click on Go.
  2. Enter GlobalWeather in the Namespace field, and click on OK.
  3. Open the WeatherService.cs file and enter the following piece of code:
using System.ServiceModel; using WeatherService.GlobalWeather; namespace Contoso.Weather {     public class Weather     {         public const string serviceAddress  = ""; ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with O’Reilly online learning.

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