How it works...
When we added Service Reference, Visual Studio created a type for each contract the service reference uses, and a client class in order to interact with the services referenced by it. It corresponds to the Service Group within Dynamics AX 365 for Operations. This is a lot more helpful than what is provided by JSON, which is why this recipe was written before the JSON method. In the next recipe, we will see that we can deserialize SOAP types from JSON.
The Authenticate class is very similar to the class we wrote in Chapter 8, Data Management, Odata, and Office, just a little more elegant. We are simply getting an authentication token (known as a bearer key) that is used when the requests are made.
The UpdateVehicleGroups class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access