#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.
- 3files
- 2AL files
- 2objects
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
- Codeunit 10569 “GovTalk Message Management”, GovTalk (GB layer): modified
- Codeunit 10520 “GovTalkMessageManagement”, Base Application (GB layer): modified
Context
- Work items: AB#647963
- Labels: Team: Finance
- Systems: finance
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Call external services with the HttpClient data type — possibly related: Explains how to use HttpClient data type for HTTP requests, directly relevant to migration from DotNet HttpWebRequest (model-linked)
- Outgoing Web Service Request Trace — possibly related: Documents outgoing web service request telemetry for HTTP calls, applicable to GovTalk SendHttpRequest implementation (model-linked)
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).