web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Businness Central 401 unauthorized access

(0) ShareShare
ReportReport
Posted on by 5

I need access to web services provided by an installation of Business Central on Premise. BC is installed on a windows server 2022 without domain (no active directory present).

Attempts to log in via SoapUI return the 401 Unauthorized.

I also tried to access through an application written in C that uses the gSoap libraries and I get the same message:

Error 401 fault: SOAP-ENV:Server [no subcode] 
"HTTP Error" Detail: HTTP/1.1 401 Unauthorized

Instead if I try to access via the following powershell script:

$username = "myUser"
$password = "MyPasswd"

$URI = "http://localhost:8012/ERP/WS/Vendor/Page/SalesOrder"
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))
$WSProxy = New-WebServiceProxy -Uri $URI -Credential $cred
$WSProxy.ReadMultiple($null, "", 0)

access is granted and I keep the response data provided by Business Central.

What do I have to configure in Business Central, in an on-premise installation without a Windows domain, to guarantee access to soapUI (or an application developed using gSoap) ?

I have the same question (0)
  • Nitin Verma Profile Picture
    21,696 Moderator on at
    RE: Businness Central 401 unauthorized access

    I think in this case you need to provide the access permission int your Azure Active Directory Application Card, check it.

  • Fra A. Profile Picture
    5 on at
    RE: Businness Central 401 unauthorized access

    I don't have "Azure Active Directory Application Card", it is a stand alone server.

    Also I don't understand why via powershell I have no problem, while on the same machine I can't login with SoapUI or gSoap.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,163

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,908

#3
YUN ZHU Profile Picture

YUN ZHU 1,878 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans