Summary
In this chapter, we have seen how to create a real-world interface between Microsoft Dynamics NAV and an external application. As learned in the chapter, it's always recommended not to directly publish NAV web services to an external application but instead use a middle tier that wraps the calls and permits flexibility and scalability.
In this chapter, we have covered all the aspects of the interface creation, such as business logic management in NAV, development of a RESTful WCF service that acts as middle tier between NAV and the external clients, application testing, and deployment.
We have learned several tips on how to write a modern interface (different responses, layered solution, security, and much more) and now we have a solution ready for production.
The next chapter will show us how to use Control Add-ins in order to use the external services from a custom user interface on NAV.