Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Differences in Web Services between v19 and 19.5?

(0) ShareShare
ReportReport
Posted on by 289

So we have an on-prem test environment running. One instance is on BC365 v19. I enabled web services (SOAP, OData, etc.) and created some API calls against web services endpoints that came out of the box, as well as a few custom ones I added. All works fine.

We then added another instance that's on BC365 v19.5. I enabled web services the same way, and try to hit the same web service endpoints as in the other instance. These all fail. The API calls respond with HTTP 401 - Unauthorized status codes. I've looked at how things are configured side by side, and everything appears to be identical. 

I'm making my API calls using standard REST requests. My BC365 instances work off Windows account authentication. And those user accounts are Super users in both instances. Here is a sample API call that works in the v19 instance, but not the v19.5 instance.

POST http://ls-test01:9048/LSCentral/ODataV4/DchApi_InsertCustomer?company=CRONUS - LS Central HTTP/1.1
Content-Type: application/json
Authorization: Negotiate YIIHowYGKwYBBQUCoIIHlzCCB5OgMDAuBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKwYBBAGCN… (truncated since it’s extremely long)
Host: ls-test01:9048
Content-Length: 490
Expect: 100-continue

{"customerNo": "D20669","primarySiteCode": "Don","fullName": "Joe Schmoe","address1": "14 Anywhere Circle","address2": "","city": "Anywhere","state": "OH","postcode": "43000","country": "US","phoneNumber": "(555)5551212","mobileNumber": "","emailAddress": "joe.schmoe@gmail.com","customerPostingGroup": "GENERAL","paymentTerms": "0/30 DAYS","genBusPostingGroup": "DOMESTIC","salesperson": "PO","note": "Imported customer.","company": "CRONUS - LS Central"}
  

Just wondering if something changed between versions in this regard? 

  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Differences in Web Services between v19 and 19.5?

    Thank you for sharing!

  • Suggested answer
    Greg Kujawa Profile Picture
    Greg Kujawa 289 on at
    RE: Differences in Web Services between v19 and 19.5?

    Figured it out. I had to check the Use NTLM Authentication option in the service config. What's strange is that option wasn't checked in the other service. And those web service calls all worked flawlessly. But checking the option for the v19.5 instance seems to have fixed the issue.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans