Businness Central 401 unauthorized access

336 views Asked by At

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) ?

1

There are 1 answers

1
Leo1971 On

I can suppose that your BC Server has "Use NTLM Authentication" option not enabled.