Skip to main content

Posts

Showing posts from September, 2017

Consume an AX7 custom web service by SOAP endpoint

Dynamics 365 for Operations (a.k.a. AX7) provides several endpoints for web service. In this blog post, I want to describe consuming a D365O custom web service in a C# application using the SOAP endpoint. For a detailed description about service endpoints, you can read the official documentation at  https://docs.microsoft.com/en-us/dynamics365/operations/dev-itpro/data-entities/services-home-page . The main advantage of the SOAP protocol is its descriptive functionality through the WSDL language. SOAP endpoints provide detailed description about contracts and parameters to call each service method. Visual Studio has a great functionality that can read the service description and automatically generate proxy classes to access the service methods. Let’s do an example of consuming a D365O web service in Visual Studio. Run  Visual Studio  and go to  File – New Project , go to  Templates – Visual C# – Windows Classic Desktop  on the left side of the window and select  Console App