Consuming the NAV web service from Java
Web service protocols such as SOAP and OData, are industry standards independent of a language or technology. They provide a high-level communication format for applications built on different platforms, allowing data exchange without the need to worry about underlying implementation details.
Due to the protocol's independence, it is possible to consume NAV data and functionality exposed through web services, from various client applications built on different technologies. In the next example, we will see how to call methods of a NAV web service from a Java application. The service used in this example is the one published earlier in the Calling object methods in SOAP web services recipe.
Getting ready
To be able to write and execute Java code, and to make the development process smooth, you will need some tools installed on your dev machine. The first requirement is to download and install Java Development Kit (JDK) from www.oracle.com.
It is possible...