---
id: change/bcapps/12326
type: change
title: "#12326 Migrate Doc. Exchange and OCR service callers off Http Web Request Mgt."
summary: Document Exchange and OCR service codeunits migrate from DotNet Http Web Request Mgt to native HttpClient, removing DotNet dependencies while maintaining backward-compatible public signatures.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - codeunit doc. exch. service mgt.
  - codeunit ocr service mgt.
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-18T00:55:27.655Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: cc4e6917cb11de6d7016d2cd92f7251545462a7d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12326
    title: "microsoft/BCApps#12326: Migrate Doc. Exchange and OCR service callers off Http Web Request Mgt."
    date: "2026-10-09"
    commit: cc4e6917cb11de6d7016d2cd92f7251545462a7d
    t: null
    quote: "It follows #10755 (merged) and #12254 (draft) and uses the same patterns."
links:
  learn: []
  objects:
    - object/codeunit/1410
    - object/codeunit/1294
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-webservices-outgoing-trace
      title: Outgoing Web Service Request Trace
      label: possibly related
      why: Migrating outgoing web service calls, documented in outgoing web service request trace telemetry.
      by: model
number: 12326
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12326
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-09T11:49:24Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: refactor
behavior_change: false
breaking: false
files:
  count: 6
  additions: 922
  deletions: 351
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/1410
    page: codeunit/1410
    type: codeunit
    id: 1410
    name: Doc. Exch. Service Mgt.
    app: Base Application
    status: modified
  - key: codeunit/1294
    page: codeunit/1294
    type: codeunit
    id: 1294
    name: OCR Service Mgt.
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/eServices/EDocument/OCRServiceMgt.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647963
systems:
  - integration
quote: "It follows #10755 (merged) and #12254 (draft) and uses the same patterns."
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12326 Migrate Doc. Exchange and OCR service callers off Http Web Request Mgt.

> Document Exchange and OCR service codeunits migrate from DotNet Http Web Request Mgt to native HttpClient, removing DotNet dependencies while maintaining backward-compatible public signatures.

[Pull request](https://github.com/microsoft/BCApps/pull/12326) · merged into `main` (BC30) on 2026-10-09 by darjoo · 6 files (+922 -351), 3 AL · refactor · tier official · reviewed (checked by Opus)

## What changed

- Doc. Exch. Service Mgt. and OCR Service Mgt. now use native HttpClient, HttpRequestMessage and HttpResponseMessage instead of Http Web Request Mgt.
- Credentials, form bodies and auth headers are handled as SecretText with NonDebuggable
- DotNet XML parsing replaced by native XmlDocument and XML DOM Management overloads
- Embedded attachments are decoded with Base64 Convert into a Temp Blob instead of DotNet File/Convert and a server temp file
- OCR session cookie uses the native Cookie type with explicit re-authentication when missing or expired

## AL objects touched

- [Codeunit 1410 "Doc. Exch. Service Mgt."](../../objects/codeunit/1410.md), Base Application: modified
- [Codeunit 1294 "OCR Service Mgt."](../../objects/codeunit/1294.md), Base Application: modified
- `src/Layers/APAC/BaseApp/eServices/EDocument/OCRServiceMgt.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#647963
- Labels: Team: Integrations
- Systems: integration
- From the description: "It follows #10755 (merged) and #12254 (draft) and uses the same patterns."

## Possibly related

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

- [Outgoing Web Service Request Trace](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-webservices-outgoing-trace) — possibly related: Migrating outgoing web service calls, documented in outgoing web service request trace telemetry. (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).
