Working with SOAP API and XML in AL. Generic API codeunit.

The purpose of this post is to learn the basics of working with XML and SOAP in AL. Besides, we’ll look at my suggestion of the generic API method SendRequest(), which fits most APIs without authorization. The authorization itself is not difficult to add to the general logic, but in the post, they are not considered due to their large number and often unique logic

Source : Volodymyr Dvernytskyi
Read more…

How to enable OAuth on WCF Soap Web services

With Microsoft Dynamics 365 Business Central 2022 Wave 1 (Version 20), basic authentication is no longer available for web services. Many applications have been written using Microsoft Communication Foundation (WCF) to talk with NAV/BC via the Soap protocol. This video shows how to enable an existing C# app using .NET Framework 4.7 with OAuth. Check it out:

Source :
Read more…

Integrate MVC Web Applications with Business Central SOAP About MVC (Model View Controller)

The Model-View-Controller (MVC) architectural pattern divides the apps into three main components: Model, View and Controller. The MVC pattern lets you create simpler apps to update and test against traditional monolithic apps.

Source : Roberto Stefanetti NAV & Business Central Blog
Read more…

Calling SOAP Services from PowerShell

Like most of my posts this has its origin in Microsoft Dynamics 365 Business Central development – specifically our build process – although it isn’t limited to that.

We had a need to call a SOAP web service from PowerShell (see below for the background if you’re interested). In the past I’ve used Invoke-WebRequest and added content-type and a SOAPAction header to the request

Source : James Pearson
Read more…