Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building ERP Solutions with Microsoft Dynamics NAV

You're reading from  Building ERP Solutions with Microsoft Dynamics NAV

Product type Book
Published in Mar 2017
Publisher Packt
ISBN-13 9781787123083
Pages 392 pages
Edition 1st Edition
Languages
Author (1):
Stefano Demiliani Stefano Demiliani
Profile icon Stefano Demiliani
Toc

Table of Contents (17) Chapters close

Building ERP Solutions with Microsoft Dynamics NAV
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Introduction to Microsoft Dynamics NAV Architectures 2. Configuring Microsoft Dynamics NAV Web Services 3. Creating an Application Using NAV Web Services 4. Using NAV Web Services with Microsoft Power BI 5. Integrating NAV Web Services and External Applications 6. Extending NAV Pages with Control Add-ins 7. Programming Universal Windows Apps with NAV and Devices 8. Exploring Microsoft Azure and its Services 9. Working with NAV and Azure App Service 10. Implementing a Message-Based Architecture with Azure Service Bus and NAV

Creating the NAV web service


The scope of our application is to read NAV sales orders and create new ones by invoking the NAV business logic. In order to do that, we need to publish the NAV Sales Order page as web service and use it.

Let's learn how to create a NAV web service by performing the following steps: 

  1. Open the Microsoft Dynamics NAV RoleTailored Client and go to the Web Services page.

  2. Create a new record with these parameters:

    • Object Type: Page

    • Object ID: 42 (Sales Order page)

    • Service Name: SalesOrder (a friendly name for our web service)

    • Published: TRUE

    The results are shown in the following screenshot:

  3. When published, NAV immediately gives you the service URL (SOAP and OData). You can test if the web service is correctly working by accessing it directly via the browser (using, for example, the SOAP URL):

  4. If the browser prompts you to insert credentials for the service, access it by using a correctly configured user in NAV.

  5. Remember that in order to access the published web services...

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 $15.99/month. Cancel anytime}