Summary

Completed

In this module, you learned how to connect with Business Central from other programming languages by using web services. The two types of web services that are available in Business Central are SOAP and OData. Each service has its own advantages and disadvantages. SOAP uses an XML document, while OData v4 uses JSON documents to communicate. You can only use Page and Query objects for OData web services, whereas for SOAP services, you can use Page and Codeunit objects. Creating and publishing new web services is simple through the Web Services page.

To connect to the web services, you need to use basic authentication. Therefore, you need to create a web service access key in the Users section to send with each request.

Remember that you should avoid using certain keywords in your web services objects. Every user interaction should be verified with the GuiAllowed function before being used.