You can download the HelloNAV2009.html file from www.teachmenav.com (or http://www.packtpub.com/support). You may need to edit the file on the line where the url variable is assigned to point to the Web service URL available on your computer. When you open the file in your browser, you will need to allow the blocked content in order for the example to run (apparently my programming is potentially dangerous-how does the web browser know me so well?)
The attached zip file contains three files...
File Name
Description
91353.fob
This is not a lot of code - seriously you should type this in, but hey, here it is if you want to import it instead. This is the "NAV Codeunit" Codeunit used in the HelloNAV2009.html sample.
91353.txt
Text version of 91353.fob.
HelloNAV2009.html
The html file that uses JavaScript to call a NAV Web service. I have edited the file to use localhost:7047 as the machine and port for accessing the Web service. You may need to edit the code further in order to get it to work on your setup. You will need to have the 91353 Codeunit imported and exposed as a Web service called "NAV Codeunit".