Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Dynamics 365 Business Central Development Quick Start Guide

You're reading from   Dynamics 365 Business Central Development Quick Start Guide Modern development techniques for Dynamics 365 Business Central

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789347463
Length 224 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Stefano Demiliani Stefano Demiliani
Author Profile Icon Stefano Demiliani
Stefano Demiliani
Duilio Tacconi Duilio Tacconi
Author Profile Icon Duilio Tacconi
Duilio Tacconi
Arrow right icon
View More author details
Toc

Dynamics 365 Business Central web services


When talking about integrating Dynamics 365 Business Central with external applications in a service-oriented way, we have essentially two main roads: use SOAP and OData web services, or use REST APIs.

To publish a NAV entity as a SOAP web service, you have to go to the web service page in Dynamics 365 Business Central. For this sample, we want to create a web service to access the Item entity, so we create a new record by inserting the following values:

  • OBJECT TYPE: Page
  • OBJECT ID: 30
  • SERVICE NAME: Item
  • PUBLISHED: true

Dynamics 365 Business Central automatically gives you the URLs for the OData and SOAP endpoints:

Now, you can access your published web service from an external application able to use SOAP web services.

To create a web service client, open Visual Studio and create a new Console application project (here called D365BCWebServiceClient). Now, right-click on your project and select Add a Service Reference.

In the Address box, enter the SOAP...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime