code change · refactorFinanceofficial - Microsoftreviewed - checked by Opus

#12614 [GB] GovTalk: migrate SendHttpRequest from DotNet HttpWebRequest to native HttpClient

GovTalk message submission migrated from deprecated DotNet HttpWebRequest to native HttpClient for HTTP communication with HMRC.

Pull request · merged into main (BC30) on 2026-10-13 by darjoo · 3 files (+219 -50), 2 AL · refactor · tier official · reviewed (checked by Opus)

What changed

  • SendHttpRequest now uses native HttpClient, HttpRequestMessage and HttpResponseMessage instead of DotNet HttpWebRequest via Web Request Helper
  • The same migration is applied to the GovTalk app (codeunit 10569) and the obsolete GB Base App copy (codeunit 10520)
  • Admin controls on outbound extension HTTP calls now apply to GovTalk submissions
  • The progress dialog opens only when GuiAllowed; POST, text/xml, redirects and the 100s timeout are unchanged
  • Two new HttpClientHandler tests cover a successful POST with XML parsing and a non-200 status returning false
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#647963
  • Labels: Team: Finance
  • Systems: finance

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).