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
Tag Archives: SOAP
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:
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
AL and SOAP
This sample is based on a page extension for page 8 (Currencies) where an action for downloading exchange rates from the Swedish State Bank has been added. The logic itself isn’t super advanced and it requires SEK as local currency. The focus here is to show how to:
My Soap Service Proxy Codeunit
Up to now we in Advania have been using the method described here on my blog to connect to most of the Soap web services that we needed to integrate with.
The problem with this method is that we have to manage a lot of DLLs. This has caused some issues and problems.
Dynamics NAV: How To Consume An External SOAP Web Service With .Net/Dotnet Interop
The reason for this blog post is that I needed to consume a web service from a partner company that give customer specific details.